Ticket #3693 (closed bug: duplicate)
IE DOMContentLoaded in an iframe
| Reported by: | zachleat | Owned by: | brandon |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.3 |
| Component: | event | Version: | 1.2.6 |
| Keywords: | Cc: | zachleat | |
| Blocking: | Blocked by: |
Description
jQuery does not properly handle the IE hack for DOMContentLoaded in an iframe, it instead relies on window.onload.
Please see my study of IE hacks for DOMContentLoaded here: http://www.zachleat.com/web/2008/12/04/domcontentloaded-inconsistencies/
A multi-library test case can be found here: http://zachleat.com/Projects/domcontentloaded/
I think the document.write defer script method with script.onreadystatechange is the currently accepted method. But certainly that doesn't mean there isn't another solution hiding somewhere.
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.

I'm pretty sure we already patched this on trunk (feel free to try it).
We'll have this for 1.3.