Closed
Bug 1217797
Opened 9 years ago
Closed 9 years ago
select list selected value do not change when set to blank
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1203668
People
(Reporter: antoniobertuzzi73, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
Build ID: 20151014143721
Steps to reproduce:
First, I have a selct list with a selected value.
When I set
document.form.<select list name>.value = '';
the value remains unchanged.
Actual results:
The value remains unchanged.
Expected results:
The select list value had to set to blank.
Reporter | ||
Updated•9 years ago
|
OS: Unspecified → Windows 7
Hardware: Unspecified → x86_64
Summary: select list selected value do not change when set to black → select list selected value do not change when set to blank
Comment 1•9 years ago
|
||
From the spec: http://www.w3.org/TR/html5/forms.html#the-select-element "On setting, the value attribute must set the selectedness of all the option elements in the list of options to false, and then the first option element in the list of options, in tree order, whose value is equal to the given new value, if any, must have its selectedness set to true and its dirtiness set to true."
Component: Untriaged → Layout: Form Controls
Product: Firefox → Core
Comment 2•9 years ago
|
||
Presumably a duplicate of bug 1203668 but hard to tell for sure without an actual testcase.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•