Closed
Bug 95083
Opened 23 years ago
Closed 23 years ago
SELECTED attribute of OPTION tag not recognized.
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: brirut, Assigned: rods)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.3) Gecko/20010801
BuildID: 2001080110
In a SELECT form element, the SELECTED attribute of the OPTION tag is used to
pre-select an option when the form loads. This is not happening in the provided
URL -- the first option is selected instead of the third. IE 5.0 properly
renders the page.
Reproducible: Always
Steps to Reproduce:
1. Go to http://www.cis.ohio-state.edu/~rutledge/select.html
2. Look at the SELECT box
Alternatively, write a page that uses a form with a SELECT control. Use the
SELECTED attribute on one of the OPTION elements.
Actual Results: Option One is selected.
Expected Results: Option Three should be selected.
<select>
<option value="one">Option One
<option value="two">Option Two
<option value="three" selected>Option Three
</select>
Reporter | ||
Comment 1•23 years ago
|
||
My fault. Mozilla apparently remembers the last selected OPTION in a SELECT
control. When I reloaded a page after adding the SELECTED attribute, the
remembering functionality apparently overrides the SELECTED functionality.
Closing and restarting the browser showed the correct option being selected.
Sorry about that.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Comment 2•23 years ago
|
||
try shift-reload instead of plain reload. That resets form controls....
You need to log in
before you can comment on or make changes to this bug.
Description
•