Skip to content

Commit b22cdb5

Browse files
Fix innerHTML of the LINK_ELEMENT_INNERHTML_BUGGY test so that it doesn't blow up when the document is served as application/xhtml+xml. [#1294 state:resolved] (Witold Baryluk)
1 parent 191f458 commit b22cdb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prototype/dom/dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@
521521
var LINK_ELEMENT_INNERHTML_BUGGY = (function() {
522522
try {
523523
var el = document.createElement('div');
524-
el.innerHTML = "<link>";
524+
el.innerHTML = "<link />";
525525
var isBuggy = (el.childNodes.length === 0);
526526
el = null;
527527
return isBuggy;

0 commit comments

Comments
 (0)