Closed Bug 314685 Opened 19 years ago Closed 14 years ago

Firefox submits <select multiple="multiple"> as a single, non-array value and JavaScript behaves as if text input fields were filled in with values that were previously in them

Categories

(Firefox :: General, defect)

1.0 Branch
x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: milos.rasic, Unassigned)

Details

(Whiteboard: [CLOSEME 5-15-2010])

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

Was betatesting quite complicated form of my own design. Filled in the form, submitted it, looked at the results, found the errors, corrected them, then started from the beginning to test again. At the beginning of the test, the form is empty (no autocomplete). I have a couple of text input fields that should start a JavaScript function that uses the field value on click. When I clicked one of those fields that was empty, there was a JavaScript error that could happen only if the field wasn't empty (in an if construction that asks if the field is not empty). I ignored this error and tried to submit the form. There was a mutliple select field in my form which always worked ok (<select multiple="multiple">) but this time only a single (highest) value was posted in a simple, non-array variable.

Reproducible: Couldn't Reproduce

Steps to Reproduce:
This bug happened after long time of working with Firefox. It seems to be extremely rare and I doubt I could reproduce it.
Actual Results:  
This bug happened after long time of working with Firefox. It seems to be extremely rare and I doubt I could reproduce it.

Expected Results:  
If a field is autocompleted, it should be displayed that way and not autocompleted only for JavaScript and empty for the user.

Multiple select should be posted as array of values of selected options.

I was using default theme. 

Maybe this bug is only a minor nuisance when worknig with small forms(like this one), but it can cause a major data and/or worktime loss when filling in large and complicated form like the one I was testing.

I cannot provide access to the form because it is protected by admin password but I can paste the page source into HTML file and send it to you so you can see what kind of HTML and JavaScript caused the bug. Send me a mail if you need that.
This bug was reported on Firefox 2.x or older, which is no longer supported and will not be receiving any more updates. I strongly suggest that you update to Firefox 3.6.3 or later, update your plugins (flash, adobe, etc.), and retest in a new profile. If you still see the issue with the updated Firefox, please post here. Otherwise, please close as RESOLVED > WORKSFORME
http://www.mozilla.com
http://support.mozilla.com/kb/Managing+profiles
http://support.mozilla.com/kb/Safe+mode
Severity: critical → major
Whiteboard: [CLOSEME 5-15-2010]
Version: unspecified → 1.0 Branch
No reply, INCOMPLETE. Please retest with Firefox 3.6.3 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.