tor-browser

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

update-dist-node-descendants-1.html (529B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait">
      3 <head>
      4 </head>
      5 <body>
      6 <div id="outer"><span id="distnode">text</span></div>
      7 <script>
      8 
      9  var shadowRoot = document.getElementById('outer').attachShadow({mode: 'open'});
     10  shadowRoot.innerHTML = '<div><slot></slot></div>';
     11 
     12  function tweak() {
     13    var distNode = document.getElementById("distnode");
     14    distNode.textContent = "Hello World";
     15 
     16    document.documentElement.removeAttribute("class");
     17 }
     18 
     19  window.addEventListener("MozReftestInvalidate", tweak);
     20 </script>
     21 </body>
     22 </html>