Modify ↓
Ticket #10769 (closed bug: duplicate)
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
