Closed Bug 156327 Opened 23 years ago Closed 23 years ago

HTMLSelectElement.value returns empty string when "multiple" attribute is present

Categories

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

x86
All
defect

Tracking

()

CLOSED INVALID

People

(Reporter: stummala, Assigned: john)

Details

Attachments

(1 file)

Gecko/20020703 Netscape/7.0 BuildID: 2002-07-03-08 HTMLSelectElement.value returns empty string when "multiple" attribute is used. Attaching testcase. <BODY> <form> <SELECT multiple size="2"> <option>netscape <option>aol <option>compuserve </SELECT> <SELECT> <option>netscape <option>aol </SELECT> </form> <SCRIPT TYPE="text/javascript"> var coll = new Array(); coll = document.getElementsByTagName("SELECT"); if (coll[0].value == "") alert ("failed to return correct value, returned EMPTY STRING"); alert ("Without multiple attr : " + coll[1].value); </script> </BODY> Reproducible: Always Steps to Reproduce: Load the testcase attached Actual Results: Returns null Expected Results: should return the selectelement value
Attached file testcase attached
setting priority to P2, as this is a regression from 6.2
Priority: -- → P2
Summary: HTMLSelectElement.value returns empty string when "multiple" attribute is present → HTMLSelectElement.value returns empty string when "multiple" attribute is present
Over to jkeiser, I bet this regressed in one of his major form control improvment patches...
Assignee: jst → jkeiser
Invalid. A multiple select without any selected options *should* show blank value. Changing the first option to <option selected> fixes it.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
marking verified based on john's comments.
Status: RESOLVED → VERIFIED
closing bug
Status: VERIFIED → CLOSED
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: