Closed Bug 592568 Opened 14 years ago Closed 14 years ago

I use "appendChild" to append a div containing an iframe to body, if there is another iframe in the page, the div's iframe will be filled with another iframe's content.

Categories

(Core :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: r4666, Unassigned)

Details

(Whiteboard: [WFM?])

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8

like the code below:
<body>

<div>   
	<div id="div1">
		<iframe></iframe>
	</div>
</div>
<iframe src="http://www.google.com/"></iframe>

<script type="text/javascript">
document.body.appendChild(document.getElementById("div1"))
</script>
</body>

Reproducible: Always

Steps to Reproduce:
like the code below:
<body>

<div>   
	<div id="div1">
		<iframe></iframe>
	</div>
</div>
<iframe src="http://www.google.com/"></iframe>

<script type="text/javascript">
document.body.appendChild(document.getElementById("div1"))
</script>
</body>
Attached file testcase
Can't reproduce on 3.6.8, nor on Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0b6pre) Gecko/20100904 Firefox/4.0b6pre
Product: Firefox → Core
QA Contact: general → general
Whiteboard: [WFM?]
Yep.  Worksforme as well.

Reporter, please feel free to reopen if you attach a testcase that shows the problem....
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Yeah, I encountered once, I'll reproduce it later.
I find that the bug will appear as you refresh the page.
Ah, if you need refresh to reproduce then bug 462076 almost certainly fixed it.  Please try Firefox 4 beta 5?
Ok, I'll be waiting for Firefox4..!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: