Closed Bug 612079 Opened 14 years ago Closed 14 years ago

Need to use "delete" keyword to truely destroyed an iframe DOM element.

Categories

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

defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 350023

People

(Reporter: josephj6802, Unassigned)

References

()

Details

(Keywords: testcase)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 GTB7.0

In Firefox, an iframe cannot be really destroyed if you use delete keyword. (My version is Firefox 3.63 under Windows XP, 2011/11/14.) This is not required in all other major browsers.

Reproducible: Always

Steps to Reproduce:
   1. Use Firefox to browse this page.
   2. Press "Create Iframe"" button.
   3. Press "Insert HTML" button.
   4. Press "Destroy Iframe" button.
   5. Press "Create Iframe" button (Again).
   6. Press "Insert HTML" again, your browser reports an error. This won't happen in other major browsers including IE.

Actual Results:  
docEl is null

Expected Results:  
Show inject iframe successfully without error.

N/A
If I change window.frames["foo"] to window.frames[0] then it works.
But window.frames[0].name is "foo".  Odd...

Dupe of bug 498904?
Component: General → DOM
Keywords: testcase
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → general
Hardware: x86 → All
Status: UNCONFIRMED → RESOLVED
Closed: 14 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.