Reset hidden value don't work
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
People
(Reporter: topperlu, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
|
755 bytes,
text/html
|
Details |
Comment 1•24 years ago
|
||
Comment 3•23 years ago
|
||
Comment 4•23 years ago
|
||
Comment 6•23 years ago
|
||
Comment 7•22 years ago
|
||
Comment 8•22 years ago
|
||
Comment 9•21 years ago
|
||
Comment 10•21 years ago
|
||
Comment 11•21 years ago
|
||
Comment 12•21 years ago
|
||
Comment 13•20 years ago
|
||
Comment 14•20 years ago
|
||
Comment 15•20 years ago
|
||
Comment 16•19 years ago
|
||
Comment 17•18 years ago
|
||
Updated•16 years ago
|
Comment 18•14 years ago
|
||
Comment 19•12 years ago
|
||
Comment 20•7 years ago
|
||
Comment 21•7 years ago
|
||
Updated•4 years ago
|
Updated•3 years ago
|
Comment 22•3 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 3 duplicates and 15 votes.
:emilio, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Comment 23•3 years ago
|
||
Given all browsers seem to behave the same way now we're unlikely to act on this. Please reopen if I got that wrong tho.
Comment 24•3 years ago
|
||
All browsers seem to behave the same, huh? I missed the test results.
Browsers deviating from specs is a problem. Don't copy other browsers. That was a common bad decision of the past.
HTML5 came along and, although some contributors were not so good (e.g. AVK and Doug Schepers), testing led to specs that could be depended on.
The deviation is that when setting a HIDDEN's .value property, the attribute is updated.
The reset algorithm for input elements sets the value of the element to the value of the value content attribute. [html5 reset], but this is taking the value from the content attribute, which was changed.
The problem is that with HIDDEN, the VALUE attribute reflects the value property.
- Load the test case
- Click Change It.
- Open Console
currValue.getAttribute("value")
'oldValue'
hiddenField.getAttribute("value")
'newValue'
[html5 reset] https://html.spec.whatwg.org/multipage/input.html#the-input-element#the-input-element:concept-form-reset-control
(HTML 5 also says "the select element does not have a value", but it does. https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#a-form-control's-value:the-select-element)
Description
•