Skip to content
Permalink
Browse files

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

throw an error in XHTML documents. Fixes #3829.
  • Loading branch information
jeresig committed Jan 13, 2009
1 parent 9c029f1 commit d5858c7cb82ba08b4a4e304ebdd684a957d47f13
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/support.js
@@ -8,7 +8,7 @@
id = "script" + (new Date).getTime();

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("*"),
a = div.getElementsByTagName("a")[0];

0 comments on commit d5858c7

Please sign in to comment.
You can’t perform that action at this time.