Commit d5858c7c authored by John Resig's avatar John Resig

Added a trailing / in the innerHTML support test to allow it to not

throw an error in XHTML documents. Fixes #3829.
parent 9c029f16
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
id = "script" + (new Date).getTime(); id = "script" + (new Date).getTime();
div.style.display = "none"; div.style.display = "none";
div.innerHTML = ' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param></object>'; div.innerHTML = ' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
var all = div.getElementsByTagName("*"), var all = div.getElementsByTagName("*"),
a = div.getElementsByTagName("a")[0]; a = div.getElementsByTagName("a")[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment