tor-browser

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

nomodule-attribute.html (580B)


      1 <!DOCTYPE html>
      2 <title>The 'nomodule' attribute</title>
      3 
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script>
      7    window.log = [];
      8 
      9    const test_load = async_test(
     10        "Test that 'nomodule' has the desired effect on classic scripts, but " +
     11        "no effect on module scripts.");
     12    window.addEventListener("load", test_load.step_func_done(ev => {
     13      assert_array_equals(log, [undefined]);
     14    }));
     15 
     16 </script>
     17 <script type="module" src="this.js" nomodule></script>
     18 <script src="this.js" nomodule></script>