tor-browser

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

document.scripts.html (658B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <title>Document.scripts</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com">
      5 <script src=/resources/testharness.js></script>
      6 <script src=/resources/testharnessreport.js></script>
      7 <div id=log></div>
      8 <script>
      9 test(function() {
     10  var scripts = document.scripts;
     11  assert_true(scripts instanceof HTMLCollection);
     12  assert_equals(scripts.length, 3);
     13 
     14  var script = document.createElement("script");
     15  document.body.appendChild(script);
     16  assert_equals(scripts.length, 4);
     17 
     18  document.body.removeChild(script);
     19  assert_equals(scripts.length, 3);
     20 }, "Document.scripts should be a live collection");
     21 </script>