OLD | NEW |
1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
2 <head> | 2 <head> |
3 <title>getElementsByName and newly introduced HTML elements</title> | 3 <title>getElementsByName and newly introduced HTML elements</title> |
4 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"/> | 4 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"/> |
5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-gete
lementsbyname"/> | 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-gete
lementsbyname"/> |
6 <link rel="stylesheet" href="../../../../../../../resources/testharness.css"/> | 6 <link rel="stylesheet" href="../../../../../../../resources/testharness.css"/> |
7 <script src="../../../../../../../resources/testharness.js"></script> | 7 <script src="../../../../../../../resources/testharness.js"></script> |
8 <script src="../../../../../../../resources/testharnessreport.js"></script> | 8 <script src="../../../../../../../resources/testharnessreport.js"></script> |
9 </head> | 9 </head> |
10 <body> | 10 <body> |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 assert_equals(document.getElementsByName("rp").length, 1); | 118 assert_equals(document.getElementsByName("rp").length, 1); |
119 assert_equals(document.getElementsByName("rp")[0], | 119 assert_equals(document.getElementsByName("rp")[0], |
120 document.getElementsByTagName("rp")[0]); | 120 document.getElementsByTagName("rp")[0]); |
121 assert_equals(document.getElementsByName("source").length, 1); | 121 assert_equals(document.getElementsByName("source").length, 1); |
122 assert_equals(document.getElementsByName("source")[0], | 122 assert_equals(document.getElementsByName("source")[0], |
123 document.getElementsByTagName("source")[0]); | 123 document.getElementsByTagName("source")[0]); |
124 }); | 124 }); |
125 </script> | 125 </script> |
126 </body> | 126 </body> |
127 </html> | 127 </html> |
OLD | NEW |