Closed
Bug 269099
Opened 20 years ago
Closed 20 years ago
Back button results in wrong dropdown selection
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 182157
People
(Reporter: barts, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1 When you click the back button in a browser after you have made a selection in a dropdown box Mozilla will not select the correct index if more than 1 item in the dropdown have the same value. Reproducible: Always Steps to Reproduce: Fill a <select> with 10 items, make sure that a couple of items have the same value but all must have different texts. Put an action on the form so that it submits to another page. Run the script, click an item. The other page is openened, and now click 'back'. If you for instance selected something with value 42 and the <select> has more items with this value, you'll notice that the -last- item with value 42 is selected now instead of the one you choose before. Actual Results: Wrong index selected. Expected Results: Right index selected ;) Mozilla shouldn't try to determine the selected index itself by comparing values, but should (as IE does) remember the selected index and select that one again after a "back" button click.
Comment 1•20 years ago
|
||
*** This bug has been marked as a duplicate of 182157 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Component: HTML: Parser → Layout: Form Controls
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•