tor-browser

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

cross-shadow-boundary-slot-6.html (528B)


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