Open
Bug 515145
Opened 15 years ago
Updated 2 years ago
contentWindow.document not immediately available in a programmatically created iframe
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
UNCONFIRMED
People
(Reporter: salar, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.3a1pre) Gecko/20090901 Minefield/3.7a1pre Manipulating the .contentWindow or .contentDocument property of a newly created (and inserted) iframe doesn't work in Firefox. It only works after the function has returned, which is not the expected behavior. Reproducible: Always Steps to Reproduce: 1. Create an iframe using iframe = document.createElement("iframe"); 2. Insert the iframe somewhere in to the document, e.g. using document.body.appendChild(iframe); 3. Try to use iframe.contentDocument or iframe.contentWindow.document to manipulate the iframe DOM. (See URL for an example of this.) Actual Results: Nothing happens. In the example URL, only "bar" is visible in the iframe. Expected Results: DOM manipulation on iframes should be available immediately. In the example URL, the expected result is "Foobar". All of this works perfectly in Safari 4.
Reporter | ||
Updated•15 years ago
|
Comment 1•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•