From: John Resig Date: Tue, 13 Jan 2009 15:08:11 +0000 (+0000) Subject: Added a trailing / in the innerHTML support test to allow it to not X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=d5858c7cb82ba08b4a4e304ebdd684a957d47f13;p=jquery.git Added a trailing / in the innerHTML support test to allow it to not throw an error in XHTML documents. Fixes #3829. --- diff --git a/src/support.js b/src/support.js index b89a9d7..6139395 100644 --- a/src/support.js +++ b/src/support.js @@ -8,7 +8,7 @@ id = "script" + (new Date).getTime(); div.style.display = "none"; - div.innerHTML = '
a'; + div.innerHTML = '
a'; var all = div.getElementsByTagName("*"), a = div.getElementsByTagName("a")[0];