tor-browser

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

slot-fallback-content-005.html (623B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8" >
      3 <meta name="author" title="Di Zhang" href="mailto:dizhangg@chromium.org">
      4 <meta name="assert" content="Remove slot with assigned node, when dynamically created.">
      5 <title>Shadow DOM: Slots and fallback contents</title>
      6 <link rel="match" href="slot-fallback-content-005-ref.html">
      7 
      8 <p>Test passes if empty.</p>
      9 
     10 <div id="host">
     11  <slot id="slot1" name="slot1">FAIL</slot>
     12  <div id="A" slot="slot1">FAIL</div>
     13 </div>
     14 
     15 <script>
     16 const shadowRoot = host.attachShadow({ mode: "open" });
     17 shadowRoot.appendChild(slot1);
     18 const s1 = shadowRoot.getElementById('slot1');
     19 s1.remove();
     20 
     21 </script>