Closed Bug 449225 Opened 13 years ago Closed 12 years ago

DHTML: form removed using removeChild() is still accessible

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 307415

People

(Reporter: matt, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

A form removed from an HTML document using document.body.removeChild() is still accessible using document.formname. It is (correctly) no longer available using document.forms['formname'].

Reproducible: Always

Steps to Reproduce:
See attached script to reproduce
Actual Results:  
Script result:

document.forms["myForm"] should be undefined and is undefined.
document.myForm should be undefined and is [object HTMLFormElement].

Expected Results:  
document.forms["myForm"] should be undefined and is undefined.
document.myForm should be undefined and is undefined.

See attached script
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 307415
You need to log in before you can comment on or make changes to this bug.