tor-browser

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

124.html (827B)


      1 <!DOCTYPE html>
      2 <html><head>
      3  <title>scheduler: altering the type attribute and changing script data inline script </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>
     10  var t = async_test();
     11 </script>
     12 <script id="test" type="text/plain">t.step(function() {log("inline script #1")});</script>
     13 <script>
     14 t.step(function() {
     15  log("inline script #2");
     16  var script = document.getElementById("test");
     17  script.removeAttribute("type");
     18  script.appendChild(document.createTextNode(""));
     19  log("end inline script #2");
     20 });
     21 onload = t.step_func(function() {
     22  assert_array_equals(eventOrder, ["inline script #2", "inline script #1", "end inline script #2"]);
     23  t.done();
     24 })
     25 </script>