tor-browser

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

async-04.html (765B)


      1 <html>
      2  <head>
      3    <title>Check async script state matches attribute</title>
      4    <link rel="help" href="https://svgwg.org/svg2-draft/interact.html#ScriptElement"/>
      5    <script src="/resources/testharness.js"></script>
      6    <script src="/resources/testharnessreport.js"></script>
      7  </head>
      8  <body>
      9    <svg>
     10      <script id="script" async href="data:text/javascript, // Do nothing."></script>
     11      <script>
     12        test(function() {
     13          let script = document.getElementById("script");
     14          script.remove();
     15          assert_true(script.async, "script is async");
     16          script.removeAttribute("async");
     17          assert_false(script.async, "script is no longer async");
     18        }, "async script state");
     19      </script>
     20    </svg>
     21  </body>
     22 </html>