tor-browser

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

cross-shadow-boundary-slot-7.html (498B)


      1 <!doctype html>
      2 <head>
      3 <link rel="match" href="cross-shadow-boundary-slot-7-ref.html"/>
      4 </head>
      5 <div>
      6  <template shadowrootmode="open">
      7    <slot name="first"></slot>
      8    <span id="inner">Inner</span>
      9    <slot name="second"></slot>
     10  </template>
     11  <span id="second" slot="second">Second</span>
     12  <span id="first" slot="first">First</span>
     13 </div>
     14 <script>
     15  // This selects:
     16 
     17  // rst Inner Sec
     18  window.getSelection()
     19      .setBaseAndExtent(second.firstChild, 3, first.firstChild, 2);
     20 </script>