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)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

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
Assignee: mccabe → vidur
Component: Javascript Engine → DOM Level 0
Reassigning to the DOM component.
Looks like a duplicate of bug 12307 -- multiple form elements with the same name aren't being reflected into an array with that name.
QA Contact: rginda → desale
Changing QA contact to Prashant
In an attempt to get my bug list in order again, marking all the bugs I have currently as ASSIGNED.
*** Bug 12307 has been marked as a duplicate of this bug. ***
*** Bug 16641 has been marked as a duplicate of this bug. ***
*** Bug 19334 has been marked as a duplicate of this bug. ***
Whiteboard: [HAVE FIX]
I have a fix for this one. Waiting for M13 to check it in.
*** Bug 19460 has been marked as a duplicate of this bug. ***
Target Milestone: M13
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed on 12/21/1999.
Status: RESOLVED → VERIFIED
Verified with 2000-01-11-09
You need to log in before you can comment on or make changes to this bug.