mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added a trailing / in the innerHTML support test to allow it to not
throw an error in XHTML documents. Fixes #3829.
This commit is contained in:
parent
9c029f1687
commit
d5858c7cb8
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user