Skip to main content

Bug Tracker

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: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7
Keywords: Cc:
Blocked by: Blocking:

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.

Attachments (0)
Change History (2)

Changed November 12, 2011 05:54PM UTC by timmywil comment:1

resolution: → duplicate
status: newclosed

Changed November 12, 2011 05:54PM UTC by timmywil comment:2

Duplicate of #10737.