tor-browser

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

146.html (636B)


      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.src = "scripts/include-1.js";
     17 });
     18 onload = t.step_func(function() {
     19  // SVG <script> element uses href attribute, so src attribute is ignored.
     20  assert_array_equals(eventOrder, []);
     21  t.done();
     22 });
     23 </script>