tor-browser

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

018.html (621B)


      1 <!doctype html>
      2 <title>document.write</title>
      3 <script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
      4 <script>
      5 test(
      6 function() {
      7  document.write("<body>");
      8  var s = "<!--comment--><i>Filler Text</i>"
      9  for (var i=0; i<s.length; i++) {
     10    document.write(s[i]);
     11  }
     12  assert_equals(document.body.firstChild.nodeType, document.COMMENT_NODE);
     13  assert_equals(document.body.firstChild.data, "comment");
     14  assert_equals(document.body.childNodes[1].localName, "i");
     15  assert_equals(document.body.childNodes[1].textContent, "Filler Text");
     16 }
     17 );
     18 </script>
     19 <div id="log"></div>