Closed
Bug 246026
Opened 22 years ago
Closed 21 years ago
HTML Select tags do not use the selected="selected" attribute at all when using numbers as options.
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: johari_lanng, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040608 Firefox/0.8.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040608 Firefox/0.8.0+
When coding in XHTML Transitional 1.0, <select> objects will not utilise the
selected="selected" attribute when using numbers in the options. For example, my
dropdown has 1,2,3,4,5 as the options (with corresponding values) and the
selected="selected" attribute/value has no effect.
It works fine when numbers are not involved. Have not tested with other HTML DTD's.
Reproducible: Always
Steps to Reproduce:
1.Code a valid XHTML Transitional 1.0 page with a <select> object on it.
2.Make sure all values are numbers with corresponding numeric values.
3.Set one of the <option> elements to selected="selected"
Actual Results:
Select list is rendered with first option visible every time.
Expected Results:
Select list should have rendered the selected <option>, as per (X)HTML
specification.
Comment 1•22 years ago
|
||
Please provide a URL or a testcase.
Assignee: firefox → nobody
Component: General → Layout: Form Controls
Product: Firefox → Browser
QA Contact: firefox.general → core.layout.form-controls
Version: unspecified → Trunk
Works for me on my test-page at
<http://www.rickbull.com/junk/mozilla/select_numbers.xhtml>. Perhaps the
reporter has an error in their code? As Bill says a URL or testcase is needed
from the reporter.
| Reporter | ||
Comment 3•22 years ago
|
||
Seems to be okay for me now (?). Will attempt to find out what was going on
there - bug can be downgraded for the meantime until I find what it was.
A couple of things I can think of would be that you selected a different item in
the list, then pressed refresh, and Mozilla restored your last selections. Or
perhaps the password/form manager was remembering your form field entries.
Comment 5•21 years ago
|
||
Marking invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•