Closed Bug 421103 Opened 16 years ago Closed 16 years ago

HTML select , selected value changes when clicking refresh multiple times

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 201056

People

(Reporter: jduval, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files, 2 obsolete files)

User-Agent:       Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12

When clicking the refresh browser button the html select, selected value changes even thou the html never changed. Tested in IE 6, 7, and Opera 9.26 all worked as expected.   Bug present in FF 2.0.0.12 and also FF beta 3.

Confirmed in #firefox

[11:43] <jerry> stevee: http://rafb.net/p/SOSylQ54.html  load the html and just click the refresh button, watch the dropdown's change
[11:44] <stevee> jerry cute
[11:45] <jerry> you see it too?
[11:45] <stevee> I see the same on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b5pre) Gecko/2008030504 Minefield/3.0b5pre ID:2008030504
[11:45] <jerry> so you agree it's a big bug
[11:45] <stevee> first combo goes closed > shipped > credit hold, second shipped > credit hold
[11:45] <stevee> I agree it looks like a bug


Reproducible: Always

Steps to Reproduce:
1.Download the attached HTML, load in browser
2.Click the browser refresh button multiple times
3.Watch the dropdown selected value change for no reason
Actual Results:  
Dropdown selected value changes

Expected Results:  
Dropdown selected value should not change because of a screen refresh, the html was static

This is a major issue since it changes form data for no apparent reason and cause data loss.
Attached file HTML Test Case (obsolete) —
Addtional note adding the autocomplete="off" to the <form element gets the expects results, but I'm sure users will complain about disabling this feature
Severity: critical → normal
Version: unspecified → Trunk
Keywords: testcase
Attached file Smaller HTML Test Case (obsolete) —
same test case with less html
Attachment #307499 - Attachment is obsolete: true
I wonder if this is due to the fact that while the id values change, the name value of all the select elements are the same. Could that be confusing the autocomplete algorithm?

--> Firefox::Form Manager
Status: UNCONFIRMED → NEW
Component: General → Form Manager
Ever confirmed: true
Ah, Mike you are correct.  If you change the name of the select to be unique it works as expected.   Should the autocomplete algorithm should be looking at id instead of name, at least in a table?
same test case just samller
Attachment #307513 - Attachment is obsolete: true
QA Contact: general → form.manager
Component: Form Manager → DOM: HTML
Product: Firefox → Core
QA Contact: form.manager → general
This is basically the same as bug 201056.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Oh, and giving all the selects involved different names will prevent this from happening...
Component: DOM: HTML → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: