tor-browser

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

030.html (714B)


      1 <!doctype html>
      2 <title>document.write</title>
      3 <script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
      4 <script>
      5 var t = async_test();
      6 t.step(function() {
      7  document.write("<body><span id=a>Filler Text</sp");
      8 });
      9 </script>an><b>Filler Text</b></span>
     10 <script>
     11 t.step(function() {
     12  assert_equals(document.body.childNodes[0].localName, "span");
     13  assert_equals(document.body.childNodes[0].getAttribute("id"), "a");
     14  assert_equals(document.body.childNodes[0].textContent, "Filler Text");
     15  assert_equals(document.body.childNodes[1].localName, "b");
     16  assert_equals(document.body.childNodes[1].textContent, "Filler Text");
     17 }
     18 );
     19 t.done();
     20 </script>
     21 <div id="log"></div>