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>Calling getElementsByName with null and undefined</title> | 3 <title>Calling getElementsByName with null and undefined</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="help" href="https://heycam.github.io/webidl/#es-DOMString"/> | 6 <link rel="help" href="https://heycam.github.io/webidl/#es-DOMString"/> |
7 <link rel="help" href="http://www.ecma-international.org/publications/files/ECMA
-ST/ECMA-262.pdf#page=57"/> | 7 <link rel="help" href="http://www.ecma-international.org/publications/files/ECMA
-ST/ECMA-262.pdf#page=57"/> |
8 <script src="../../../../../../../resources/testharness.js"></script> | 8 <script src="../../../../../../../resources/testharness.js"></script> |
9 <script src="../../../../../../../resources/testharnessreport.js"></script> | 9 <script src="../../../../../../../resources/testharnessreport.js"></script> |
10 </head> | 10 </head> |
(...skipping 15 matching lines...) Expand all Loading... |
26 u.setAttribute("name", "undefined"); | 26 u.setAttribute("name", "undefined"); |
27 | 27 |
28 document.body.appendChild(u); | 28 document.body.appendChild(u); |
29 this.add_cleanup(function() { document.body.removeChild(u) }); | 29 this.add_cleanup(function() { document.body.removeChild(u) }); |
30 | 30 |
31 assert_equals(document.getElementsByName(undefined)[0], u); | 31 assert_equals(document.getElementsByName(undefined)[0], u); |
32 }, "getElementsByName(undefined)"); | 32 }, "getElementsByName(undefined)"); |
33 </script> | 33 </script> |
34 </body> | 34 </body> |
35 </html> | 35 </html> |
OLD | NEW |