Closed Bug 373979 Opened 18 years ago Closed 18 years ago

On refresh, the wrong option is selected in a select box when two options have the same value.

Categories

(Firefox :: General, defect)

2.0 Branch
PowerPC
macOS
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 201056

People

(Reporter: sama, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 On refresh, the wrong option is selected in a select box when two options have the same value. Please see "Steps to Reproduce" for example HTML and more information. Reproducible: Always Steps to Reproduce: 1. Create a web page with the VERY small source document *PROVIDED BELOW* 2. Open the page in a browser 3. Verify that the item selected is "One" 4. Hit the browser's "reload" button 5. Verify that the item selected is "Two" when it should still be "One" SIMPLE SOURCE CODE WHICH DEMONSTRATES THE BUG: <html> <body> <select name="tester"> <option value="myVal" selected>One</option> <option value="myVal">Two</option> </select> </body> </html> Actual Results: Select box option "Two" is erroneously selected upon refresh Expected Results: Select box option "One" should remain selected upon refresh "One" should be selected since IT has the 'selected' attribute set, not "Two"
Version: unspecified → 2.0 Branch
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.