Opened 9 years ago
Closed 9 years ago
#14580 closed bug (invalid)
Nested $(doc).ready calls don't work in IE9 or lower
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I'm not necessarily advocating this as good practice, just reporting the behavior.
Might duplicate #10010.
Expected behavior: Separate alert for each element that matches #things li
Browsers
Chrome: PASS
Firefox: PASS
IE10: PASS
IE9: FAIL
IE8: FAIL
function Thing(el) { $(document).ready(function() { alert($(el).attr('class')); }); } $(document).ready(function() { $('#things li').each(function() { var thing = new Thing(this); }); });
Change History (2)
comment:1 Changed 9 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 9 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
This seems to work fine in edge, can you confirm?
http://jsfiddle.net/ysd6U/2/