OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <div style="display: none"> | 8 <div style="display: none"> |
9 <form id=a> | 9 <form id=a> |
10 <input id=x> | 10 <input id=x> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 // document.all is an ugly mutant (i.e. not an HTMLCollection). | 48 // document.all is an ugly mutant (i.e. not an HTMLCollection). |
49 | 49 |
50 if ("all" in document) { | 50 if ("all" in document) { |
51 shouldBe("document.all.item('z')[0]", "document.forms[0].elements.namedItem(
'z')"); | 51 shouldBe("document.all.item('z')[0]", "document.forms[0].elements.namedItem(
'z')"); |
52 shouldBe("document.all.item('z')[1]", "document.forms.namedItem('z')"); | 52 shouldBe("document.all.item('z')[1]", "document.forms.namedItem('z')"); |
53 shouldBe("document.all.item('z')[2]", "document.forms.namedItem('z').element
s.namedItem('z')"); | 53 shouldBe("document.all.item('z')[2]", "document.forms.namedItem('z').element
s.namedItem('z')"); |
54 } | 54 } |
55 | 55 |
56 </script> | 56 </script> |
57 <script src="../js/resources/js-test-post.js"></script> | |
58 </body> | 57 </body> |
59 </html> | 58 </html> |
OLD | NEW |