Closed Bug 121226 Opened 23 years ago Closed 23 years ago

HTMLIFrameElement with CSS display set to none looses content

Categories

(Core :: DOM: CSS Object Model, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 52334

People

(Reporter: martin.honnen, Assigned: jst)

Details

Attachments

(2 files)

It seems that Mozilla looses the document content of an iframe when you set the
CSS display property of the HTMLIFrameElement to none. It seems that the iframe
is reloaded when you make it visible again, meaning all changes done via the dom
are lost. Very annoying.
IE6 gets it right, also Mozilla gets it right when you simply set visibility to
hidden instead of using display but display: none should result in a loss of
content.
I will attach a test case.
As for the test case, if you use the third button to hide and the the fourth
button to show the iframe again you see that the changes done to the iframe's
document are preserved. However when you use the first button to hide the
iframe and the second to show it again (these buttons toggle the CSS display
property) then the content of the iframe document is not preserved, instead the
original iframe document is displayed again, with all changes done in the
meantime being lost.
dupe of 52334

*** This bug has been marked as a duplicate of 52334 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: