Closed
Bug 219901
Opened 21 years ago
Closed 21 years ago
order of form elements in the html dom and form.elements[]array
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 204784
People
(Reporter: pch, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030911 Firebird/0.6.1+ Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030911 Firebird/0.6.1+ with javascript/dom functions designers can reorder form elements in a loaded document. some applications may be interested in the result of the users interaction with the page, for them it was essential, that the form.elements[] array was in sync with the order of the elements in the dom. Reproducible: Always Steps to Reproduce: 1. load linked page 2. move an element down or up 3. click "alert" or "save" button Actual Results: I guess, insertBefore first removes the element, then adds a new one. this element is always last in the array, without respect to the order in the dom. Expected Results: the element should have the same place in the elements array as in the dom. the spex may be silent about this, so it may be an enhancement (though opera and ie do show the "expected" results above.) this bug is most likely a duplicate of both http://bugzilla.mozilla.org/show_bug.cgi?id=203886 http://bugzilla.mozilla.org/show_bug.cgi?id=204784 regards, peter
Comment 1•21 years ago
|
||
*** This bug has been marked as a duplicate of 204784 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•