diff options
author | John Resig <jeresig@gmail.com> | 2009-01-13 15:08:11 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-01-13 15:08:11 +0000 |
commit | d5858c7cb82ba08b4a4e304ebdd684a957d47f13 (patch) | |
tree | 95a51a7e3ee04ac03d9820cf34f65ab97d269884 /src | |
parent | 9c029f1687d87abd52dca1cc2a5ecdb01895d6de (diff) | |
download | jquery-d5858c7cb82ba08b4a4e304ebdd684a957d47f13.tar.gz jquery-d5858c7cb82ba08b4a4e304ebdd684a957d47f13.zip |
Added a trailing / in the innerHTML support test to allow it to not
throw an error in XHTML documents. Fixes #3829.
Diffstat (limited to 'src')
-rw-r--r-- | src/support.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support.js b/src/support.js index b89a9d73f..6139395df 100644 --- a/src/support.js +++ b/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]; |