On reload of a form with a dynamic input field, form shifts down values
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: mozilla, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
|
417 bytes,
text/html
|
Details |
Updated•19 years ago
|
Updated•19 years ago
|
Comment 2•19 years ago
|
||
Comment 3•19 years ago
|
||
Comment 4•19 years ago
|
||
Updated•19 years ago
|
As of Firefox 70.0, this is still happening.
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:70.0) Gecko/20100101 Firefox/70.0
In tests on v70, it does not appear to matter whether name="..." or id="..." attributes are present or missing on the hidden elements. This does not appear to be a viable workaround. Related, I'm seeing Firefox overwrite values from one hidden element to another hidden element, each with distinct values for name="...".
I also tried nesting hidden elements in different div's. The incorrect data repopulation appears to happen even to elements in different locations in the DOM.
Additionally, I tried adding id="<random-value>" to the form element itself to see if that would cause Firefox to refrain from populating values at all, but it doesn't. FF seems to treat forms with unique id's as the same and still repopulates data incorrectly.
I should also note I've seen examples where the incorrect value shifts to a field above the original/proper field and also below.
It would seem that at the least, elements with unique values for attributes like name=, id=, and so on should be uniquely identifiable and thus should not mix up values.
Since we are now in a world where the norm is for modern web apps to make dynamic changes to the DOM, is there any chance this being looked at?
Comment 7•7 years ago
|
||
(In reply to tm from comment #6)
The test-case in comment 2 works for me in current Nightly. And I took a look and it's been working quite a few releases after.
Is there any chance you could provide a test-case that reproduces the issue?
Updated•4 years ago
|
Description
•