Ticket #6087 (closed bug: invalid)
Firefox 3.5.7 iframe length incorrect
| Reported by: | subt13 | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | ||
| Component: | core | Version: | 1.4 |
| Keywords: | iframe length count | Cc: | |
| Blocking: | Blocked by: |
Description
issuing this command in firefox 3.5.7: alert( $( 'iframe' ).length ) returns a different length than the exact same code in ie 7/8. here is mark I used to reproduce:
<html> <head>
<script src="jquery-1.3.2.min.js" type="text/javascript"></script> <script type="text/javascript">
$(function() {
alert($('iframe').length);
});
</script>
</head> <body>
<div>
<iframe src="" />
</div> <div style="">
<iframe src="" />
</div> <div style="display:none">
<iframe src="" />
</div> <div style="display:none">
<iframe src="" />
</div>
</body> </html>
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 noticed when I closed the iframes with </iframe> jQuery found them. Perhaps it was just bad markup and not a bug