Side navigation
#10769 closed bug (duplicate)
Opened November 12, 2011 04:48PM UTC
Closed November 12, 2011 05:54PM UTC
Last modified March 14, 2012 10:52AM UTC
SCRIPT5007 error when loading jQuery after DOM ready
Reported by: | logutov@gmail.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In IE 9 in IE 7 mode I got SCRIPT5007 error if I load jQuery with lazy-loading technique (document.createElement("script") and document.body.appendChild).
Error on line jQuery.js 1658:
testElement.innerHTML = "";
testElementParent.removeChild( testElement );
Thats because before this statement there is a function block that set "testElement = container = null;" and this block should be called only on DOM ready. But since I load jQuery after DOM ready it executed immediately and set testElement to null.