Added a trailing / in the innerHTML support test to allow it to not
authorJohn Resig <jeresig@gmail.com>
Tue, 13 Jan 2009 15:08:11 +0000 (15:08 +0000)
committerJohn Resig <jeresig@gmail.com>
Tue, 13 Jan 2009 15:08:11 +0000 (15:08 +0000)
throw an error in XHTML documents. Fixes #3829.

src/support.js

index b89a9d7..6139395 100644 (file)
@@ -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];