tor-browser

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

146-href.html (596B)


      1 <!DOCTYPE html>
      2 <html><head>
      3  <title>scheduler: SVG script adding src attribute </title>
      4  <script src="/resources/testharness.js"></script>
      5  <script src="/resources/testharnessreport.js"></script>
      6  <script src="testlib/testlib.js"></script>
      7 </head>
      8 <div id="log"></div>
      9 <script>var t = async_test();</script>
     10 <svg>
     11 <script></script>
     12 </svg>
     13 <script>
     14 t.step(function() {
     15  var s = document.querySelector("svg > script");
     16  s.setAttribute("href", "scripts/include-1.js");
     17 });
     18 onload = t.step_func(function() {
     19  assert_array_equals(eventOrder, ["external script #1"]);
     20  t.done();
     21 });
     22 </script>