tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

document.getElementsByName-id-xhtml.xhtml (563B)


      1 <html xmlns="http://www.w3.org/1999/xhtml">
      2 <head>
      3 <title>getElementsByName and ids</title>
      4 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com"/>
      5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-getelementsbyname"/>
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 </head>
      9 <body>
     10 <div id="log"></div>
     11 <div id="test">
     12 <div id="abcd"></div>
     13 </div>
     14 <script>
     15 test(function() {
     16  assert_equals(document.getElementsByName("abcd").length, 0);
     17 });
     18 </script>
     19 </body>
     20 </html>