tor-browser

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

shadow-reassign-dynamic-005-crash.html (387B)


      1 <!doctype html>
      2 <div id="host">
      3  <template shadowrootmode="open">
      4    <slot></slot>
      5    <slot></slot>
      6  </template>
      7  <div id="child1">Child1</div>
      8  <div id="child2" slot="named-slot">Child2</div>
      9 </div>
     10 <script>
     11  host.getBoundingClientRect();
     12  host.shadowRoot.querySelectorAll("slot")[1].name = "named-slot";
     13  host.style.display = "flex";
     14  host.getBoundingClientRect();
     15 </script>