Closed
Bug 518086
Opened 15 years ago
Closed 14 years ago
the selectedIndex with the disabled option in select tag is wrong
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 451200
People
(Reporter: jumperchen, Unassigned)
Details
Attachments
(1 file)
260 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 GTB5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 GTB5
For example,
<select onchange='alert(this.selectedIndex)' size="1">
<option disabled="disabled" selected="selected">One</option>
<option>Two</option>
<option>Three</option>
</select>
Note: The bug only occurs in Firefox, not in others.
Reproducible: Always
Steps to Reproduce:
1.Open the dropdown list and hover over value "Two". Press ESC to cancel the selection.
Actual Results:
You can get the selectedIndex with 1, rather than 0.
Expected Results:
The selectedIndex should be 0.
Reporter | ||
Comment 1•15 years ago
|
||
Updated•14 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Comment 3•14 years ago
|
||
Thanks for the clear report and the testcase by the way! When reporting bugs in the rendering engine (and not the UI), file them in product Core, component General instead of in Firefox:General. Bugs there have a higher chance of being seen by the right people.
You need to log in
before you can comment on or make changes to this bug.
Description
•