tor-browser

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

script_009.html (624B)


      1 <!doctype html>
      2 <title>document.write script that document.writes script</title>
      3 <script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
      4 <script>
      5 var t = async_test();
      6 var order = [];
      7 t.step(function() {
      8  order.push(1);
      9  document.write("<script>order.push(2); document.write('<script>order.push(3); document.write(\"<script>order.push(4);</script\"+\">\"); order.push(5);</script' + '>'); order.push(6);</script" + ">");
     10  order.push(7);
     11 });
     12 </script>
     13 <script>
     14 t.step(function() {
     15  assert_array_equals(order, [1,2,3,4,5,6,7]);
     16 });
     17 t.done();
     18 </script>
     19 <div id="log"></div>