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 ids</title> | 3 <title>getElementsByName and ids</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> |
11 <div id="log"></div> | 11 <div id="log"></div> |
12 <div id="test"> | 12 <div id="test"> |
13 <div id="abcd"></div> | 13 <div id="abcd"></div> |
14 </div> | 14 </div> |
15 <script> | 15 <script> |
16 test(function() { | 16 test(function() { |
17 assert_equals(document.getElementsByName("abcd").length, 0); | 17 assert_equals(document.getElementsByName("abcd").length, 0); |
18 }); | 18 }); |
19 </script> | 19 </script> |
20 </body> | 20 </body> |
21 </html> | 21 </html> |
OLD | NEW |