tor-browser

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

cross-shadow-boundary-slot-3-ref.html (352B)


      1 <!doctype html>
      2 <span id="outer">Outer</span>
      3 <div>
      4  <span>Inner</span>
      5  <div>
      6    <span id="slotted">Slotted</span>
      7    <span id="nested">Nested</span>
      8  </div>
      9 </div>
     10 <script>
     11  const start = outer.firstChild;
     12  const end = document.getElementById("slotted").firstChild;
     13  window.getSelection()
     14      .setBaseAndExtent(start, 3, end, 4);
     15 </script>