tor-browser

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

document.head-01.html (852B)


      1 <!DOCTYPE html>
      2 <title>document.head</title>
      3 <link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
      4 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-head">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <div id="log"></div>
      8 <script>
      9 test(function() {
     10  var head = document.getElementsByTagName("head")[0];
     11  assert_equals(document.head, head);
     12  document.head = "";
     13  assert_equals(document.head, head);
     14  document.head = document.createElement("head");
     15  assert_equals(document.head, head);
     16  document.documentElement.appendChild(document.createElement("head"));
     17  assert_equals(document.head, head);
     18  var head2 = document.createElement("head");
     19  document.documentElement.insertBefore(head2, head);
     20  assert_equals(document.head, head2);
     21 });
     22 </script>