tor-browser

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

032.html (560B)


      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  var tag_name_length = 100000;
      8  var tag_name = "";
      9  for (var i=0; i<tag_name_length; i++) {
     10    tag_name += "a";
     11  }
     12  document.write("<body><" + tag_name + ">Filler Text</" + tag_name + ">");
     13 });
     14 </script>
     15 <script>
     16 t.step(function() {
     17  assert_equals(document.body.childNodes[0].textContent, "Filler Text");
     18 }
     19 );
     20 t.done();
     21 </script>
     22 <div id="log"></div>