Closed Bug 357700 Opened 18 years ago Closed 18 years ago

Appending dynamically generated iframe to document.body causes frame reload

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 254144

People

(Reporter: netdragon, Unassigned)

Details

Attachments

(1 file)

When a dynamically generated iframe (created by src="javascript:document.write(...") is moved in the DOM to the document.body element using appendChild, it causes the frame to reload. It seems to me that the desirable behavior would be for it not to reload, as in IE, since people can explicitly force a reload. The automatic reload gets in the way of certain dynamic functionality, such as using Ajax to write out content that can be moved around in the DOM. I will be attaching a test page. Tested on FF2 and FF1.5
Attached file Test page
Test page. Click "Cycle" and notice that the previous frame's code gets called again.
Dup of bug 254144?
*** This bug has been marked as a duplicate of 254144 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: