Closed Bug 307415 Opened 19 years ago Closed 11 years ago

Input removed from document is not removed from form properties

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 841442

People

(Reporter: mikecaines, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050903 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050903 Firefox/1.0+

If an input is removed from the document, it still remains as a property of the
form, but NOT as a property of form.elements. The behaviour should be identical.

Reproducible: Always

Steps to Reproduce:
1. remove an input that is a descendant of a form

Actual Results:  
form.inputName still holds a reference to the removed input

Expected Results:  
form.inputName is updated to undefined
Attached file testcase
This behaviour is evident in Firefox 1.04 on OSX
This is quite similar to bug 100499, same cause?
Bug 377413 is very similar to this bug.
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
I observe this behavior on Firefox 2.0.0.16 on Windows. Holla.
I can reproduce this bug using Firefox trunk on Mac.
Severity: major → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Depends on: 100499
Assignee: general → nobody
I hope I won't surprise anybody if this bug is still present as of 9.0a2 :-)
Blocks: 718420
I cannot reproduce the problem in Firefox24.0b8 and later.


Fixed window(m-i)
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/5458a7880db5
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20130619 Firefox/24.0 ID:20130619062021
Fixed:
http://hg.mozilla.org/integration/mozilla-inbound/rev/259e68f8843d
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20130619 Firefox/24.0 ID:20130619072522
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=5458a7880db5&tochange=259e68f8843d

I guess this is fixed by Bug 841442
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite?
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.