Bug Tracker

Modify

Ticket #10769 (closed bug: duplicate)

Opened 19 months ago

Last modified 15 months ago

SCRIPT5007 error when loading jQuery after DOM ready

Reported by: logutov@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7
Keywords: Cc:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 19 months ago by timmywil

  • Status changed from new to closed
  • Resolution set to duplicate

comment:2 Changed 19 months ago by timmywil

Duplicate of #10737.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.