Skip to main content

Bug Tracker

Side navigation

#6087 closed bug (invalid)

Opened February 12, 2010 03:23PM UTC

Closed February 16, 2010 09:20PM UTC

Firefox 3.5.7 iframe length incorrect

Reported by: subt13 Owned by:
Priority: Milestone:
Component: core Version: 1.4
Keywords: iframe length count Cc:
Blocked by: Blocking:
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>

Attachments (0)
Change History (2)

Changed February 12, 2010 04:41PM UTC by subt13 comment:1

I noticed when I closed the iframes with </iframe> jQuery found them. Perhaps it was just bad markup and not a bug

Changed February 16, 2010 09:20PM UTC by john comment:2

resolution: → invalid
status: newclosed

Correct, self-closing iframes are malformed markup.