tor-browser

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

document.head-02.html (824B)


      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 var HTML = "http://www.w3.org/1999/xhtml";
     10 test(function() {
     11  var head = document.getElementsByTagName("head")[0];
     12  assert_equals(document.head, head);
     13  var head2 = document.createElementNS(HTML, "blah:head");
     14  document.documentElement.insertBefore(head2, head);
     15  assert_equals(document.head, head2);
     16  var head3 = document.createElementNS("http://www.example.org/", "blah:head");
     17  document.documentElement.insertBefore(head3, head2);
     18  assert_equals(document.head, head2);
     19 });
     20 </script>