tor-browser

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

051.html (562B)


      1 <!doctype html>
      2 <title>document.write \r\n</title>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 
      6 <div id="log"></div>
      7 
      8 <script>
      9 var t = async_test();
     10 
     11 t.step(function() {
     12  document.write("\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nA");
     13 })
     14 
     15 onload = function() {
     16  t.step(function() {
     17    const lastNode = document.getElementById('after');
     18    assert_equals(lastNode.previousSibling.data, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nAB");
     19  });
     20  t.done();
     21 };
     22 </script>B<div id=after></div>