Closed
Bug 18840
Opened 25 years ago
Closed 25 years ago
[4.xP] [Testcase] Identically named radio and checkbox inputs don't create expected arrays.
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
M13
People
(Reporter: jonblake, Assigned: vidur)
References
Details
(Whiteboard: [HAVE FIX])
Overview description:
When two or more radio buttons or checkboxes are specified in HTML with the same
name (e.g. inputName), an array should be created at document.forms[ formNumber
].inputName[]. This isn't happening in the M10 and 14 Nov 1999 builds on win98.
I haven't been able to verify this using other builds or platforms. I suspect
that this is simply an unimplemented feature across platforms.
Test case:
--------------------
<html>
<head>
<title>JavaScript Test</title>
</head>
<body>
<form>
<input type="checkbox" name="check"> Checkbox 1<br>
<input type="checkbox" name="check"> Checkbox 2<br>
<input type="radio" name="rad"> Radio 1<br>
<input type="radio" name="rad"> Radio 2<br>
</form>
<p><b>Value of object:</b></p>
<script>
document.write( "<b>document.forms[0].check:<\/b> " + document.forms[0].check +
"<br>");
document.write( "<b>document.forms[0].check[0]:<\/b> " +
document.forms[0].check[0] + "<br>");
document.write( "<b>document.forms[0].rad:<\/b> " + document.forms[0].rad +
"<br>");
document.write( "<b>document.forms[0].rad[0]:<\/b> " + document.forms[0].rad[0]
+ "<br>");
</script>
</body>
</html>
----------------------------
Expected results:
....input elements....
Value of object:
document.forms[0].check: [object ...]
document.forms[0].check[0]: [object ...]
document.forms[0].rad: [object ...]
document.forms[0].rad[0]: [object ...]
Actual results:
....input elements....
Value of object:
document.forms[0].check: [object HTMLInputElement]
document.forms[0].check[0]: undefined
document.forms[0].rad: [object HTMLInputElement]
document.forms[0].rad[0]: undefined
Updated•25 years ago
|
Assignee: mccabe → vidur
Component: Javascript Engine → DOM Level 0
Comment 1•25 years ago
|
||
Reassigning to the DOM component.
Comment 2•25 years ago
|
||
Looks like a duplicate of bug 12307 -- multiple form elements with the same name
aren't being reflected into an array with that name.
Updated•25 years ago
|
QA Contact: rginda → desale
Comment 3•25 years ago
|
||
Changing QA contact to Prashant
Assignee | ||
Comment 4•25 years ago
|
||
In an attempt to get my bug list in order again, marking all the bugs I have
currently as ASSIGNED.
Assignee | ||
Updated•25 years ago
|
Whiteboard: [HAVE FIX]
Assignee | ||
Comment 8•25 years ago
|
||
I have a fix for this one. Waiting for M13 to check it in.
Assignee | ||
Updated•25 years ago
|
Target Milestone: M13
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 10•25 years ago
|
||
Fixed on 12/21/1999.
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 11•25 years ago
|
||
Verified with 2000-01-11-09
You need to log in
before you can comment on or make changes to this bug.
Description
•