Closed Bug 235556 Opened 22 years ago Closed 22 years ago

FireFox doesn't support selected="selected" in the option tag of a select element

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: matthew, Assigned: bugzilla)

Details

User-Agent: Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 Firefox does not pre-select an option element that is marked as being selected in XHTML Strict forms. IE: <select name="2" id="2"> <option value="1">art galleries</option> <option value="2" selected="selected">web development</option> <option value="3">shopping</option> </select> The second option is not actually selected, rather Firefox displays the first listed option tag instead. Problem may not be limited to XHTML Strict, i've not checked other DTDs. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: Expected result is to pre-select the option element which has the 'selected' attribute set This bug appears to be FireFox only, Mozilla 1.6 rendered content correctly
> This bug appears to be FireFox only, Mozilla 1.6 rendered content correctly Then why'd you file this bug on Mozilla?
Assignee: general → firefox
Component: Browser-General → General
Product: Browser → Firefox
Version: Trunk → unspecified
Have a problematic testcase you can attach? I created a transitional and strict xhtml testcase, both work fine for me... http://www.gozer.org/test/mozilla/235556/strict.html http://www.gozer.org/test/mozilla/235556/transitional.html
Yeah, sounds like bug 216253, testcase there WFM. Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040207 Firefox/0.8 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031008
that's bizzarre, i just tried the page that wasnt working again, and it's fine. I can only assume my system or Firefox was having cache troubles. My apologies.
np :) closing as WFM
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.