tor-browser

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

document.title-08.html (805B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Denis Ah-Kang" href="mailto:denis@w3.org">
      3 <link rel="help" href="https://html.spec.whatwg.org/multipage/#document.title">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <div id="log"></div>
      7 <script>
      8 test(function() {
      9  assert_equals(document.title, "");
     10 }, "No title element");
     11 
     12 test(function() {
     13  var title = document.createElement("title");
     14  title.appendChild(document.createTextNode("PASS"));
     15  document.head.appendChild(title);
     16  assert_equals(document.title, "PASS");
     17 
     18  title.appendChild(document.createTextNode("PASS2"));
     19  title.appendChild(document.createTextNode("PASS3"));
     20  assert_equals(document.title, "PASSPASS2PASS3");
     21 }, "title element contains multiple child text nodes");
     22 </script>