OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 | |
4 <script> | |
5 if (window.layoutTestController) | |
6 layoutTestController.dumpAsText(); | |
7 | |
8 function check() { | |
9 var node = document.getElementById("result"); | |
10 | |
11 if ((typeof document.f.cb0 == 'undefined') && | |
12 (document.f.cb1.nodeName == 'INPUT') && | |
13 (document.f.cb2.length == 2) && | |
14 (document.f.rb2.length == 2)) { | |
15 node.innerHTML = "Test Passed"; | |
16 } else { | |
17 node.innerHTML = "Test Failed"; | |
18 } | |
19 } | |
20 </script> | |
21 </head> | |
22 | |
23 <body onload="check()"> | |
24 <p> | |
25 <b>Test purpose: </b> | |
26 Multiple radio buttons/checkboxes with the same name should map to | |
27 'object:collection' when accessed thru document.form.name. Bug#805063 | |
28 </p> | |
29 <form name="f"> | |
30 <ul> | |
31 <li>Radio button: | |
32 <input type="radio" name="rb2"/>Male | |
33 <input type="radio" name="rb2"/>Female | |
34 </li> | |
35 | |
36 <li>Checkbox: | |
37 <input type="checkbox" name="cb1"/>1 | |
38 </li> | |
39 | |
40 <li>Checkbox: | |
41 <input type="checkbox" name="cb2"/>1 | |
42 <input type="checkbox" name="cb2"/>2 | |
43 </li> | |
44 </ul> | |
45 </form> | |
46 | |
47 <B>Result:</B><div id="result"></div> | |
48 | |
49 </body> | |
50 | |
51 </HTML> | |
52 | |
OLD | NEW |