Closed Bug 1074549 Opened 10 years ago Closed 10 years ago

modifications to the DOM inside a new iframe disappear

Categories

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

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 543435

People

(Reporter: jonathantneal, Unassigned)

Details

(Whiteboard: DUPEME)

Attachments

(1 file)

Attached file iframe.html
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36

Steps to reproduce:

I appended an iframe to a document.
I added content to that iframe's document.


Actual results:

The iframe displayed no content.


Expected results:

The iframe should have displayed its content.
Is this about the initial about:blank and the next about:blank?
Component: Layout → DOM
I think so, yes. I have observed that while content either flashes briefly or never appears at all, the listeners on the iframe's window persist, which makes me think the browser is loading one document and then dumping it for another.

In the end, the spec isn't being followed, nor is the behavior consistent with other browsers.

http://dev.w3.org/html5/spec-preview/the-iframe-element.html
This is a known issue with initial about:blank.  Waiting until the load event on the iframe fires before modifying its DOM is a workaround if one is needed for now...
Whiteboard: DUPEME
Summary: iframe generated content disappears → modifications to the DOM inside a new iframe disappear
Status: UNCONFIRMED → RESOLVED
Closed: 10 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

Creator:
Created:
Updated:
Size: