OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <script src="../../resources/js-test.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
3 <img name=outside1></img> | 3 <img name=outside1></img> |
4 <form id="f1"> | 4 <form id="f1"> |
5 <button id=n1></button> | 5 <button id=n1></button> |
6 <keygen id=n1></keygen> | 6 <keygen id=n1></keygen> |
7 <output id=n1></output> | 7 <output id=n1></output> |
8 <object name=n1></object> | 8 <object name=n1></object> |
9 <select name=n1><option id=n1></option></select> | 9 <select name=n1><option id=n1></option></select> |
10 <input name=n1 type=hidden> | 10 <input name=n1 type=hidden> |
11 <input name=n1 type=image> | 11 <input name=n1 type=image> |
12 <input name=n1 type=text> | 12 <input name=n1 type=text> |
13 <input name=n2 type=image> | 13 <input name=n2 type=image> |
14 <img name=n2></img> | 14 <img name=n2></img> |
15 <img id=n2></img> | 15 <img id=n2></img> |
| 16 <img id=n3></img> |
16 </form> | 17 </form> |
17 <!-- The img element isn't 'reassociatable'; add @form to verify it is so. --> | 18 <!-- The img element isn't 'reassociatable'; add @form to verify it is so. --> |
18 <img name=n2 form=f1></img> | 19 <img name=n2 form=f1></img> |
19 <script> | 20 <script> |
20 description("Test RadioNodeLists returned by the HTMLFormElement named-getter.")
; | 21 description("Test RadioNodeLists returned by the HTMLFormElement named-getter.")
; |
21 | 22 |
22 var radioNodeList; | 23 var radioNodeList; |
23 | 24 |
24 function shouldBeImgElement(n) { | 25 function shouldBeImgElement(n) { |
25 shouldBeTrue("radioNodeList[" + n + "] instanceof HTMLImageElement"); | 26 shouldBeTrue("radioNodeList[" + n + "] instanceof HTMLImageElement"); |
(...skipping 14 matching lines...) Expand all Loading... |
40 var button = document.createElement("button"); | 41 var button = document.createElement("button"); |
41 button.name = "n2"; | 42 button.name = "n2"; |
42 form.appendChild(button); | 43 form.appendChild(button); |
43 verifyLength(2); | 44 verifyLength(2); |
44 | 45 |
45 var img = document.createElement("img"); | 46 var img = document.createElement("img"); |
46 img.name = "n2"; | 47 img.name = "n2"; |
47 form.appendChild(img); | 48 form.appendChild(img); |
48 verifyLength(3); | 49 verifyLength(3); |
49 </script> | 50 </script> |
OLD | NEW |