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)
Tracking
()
CLOSED
INVALID
People
(Reporter: stummala, Assigned: john)
Details
Attachments
(1 file)
|
461 bytes,
text/html
|
Details |
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
| Reporter | ||
Comment 1•23 years ago
|
||
| Reporter | ||
Comment 2•23 years ago
|
||
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
Comment 3•23 years ago
|
||
Over to jkeiser, I bet this regressed in one of his major form control
improvment patches...
Assignee: jst → jkeiser
| Assignee | ||
Comment 4•23 years ago
|
||
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
| Reporter | ||
Comment 5•23 years ago
|
||
marking verified based on john's comments.
Status: RESOLVED → VERIFIED
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.
Description
•