tor-browser

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

template-contentmethod-supersedes-invalid-shadowrootmode.html (755B)


      1 <!DOCTYPE HTML>
      2 <meta charset="utf-8" />
      3 <title>HTML partial updates: invalid shadowrootmode superseded by contentmethod</title>
      4 <link rel=help href="https://github.com/WICG/declarative-partial-updates">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 
      8 <div id="container">
      9    <section id=outer contentname="d">Unchanged</section>
     10    <template shadowrootmode="invalid" contentmethod="replace-children">
     11        <section id=inner contentname="d">Inside</section>
     12    </template>
     13 </div>
     14 
     15 <script>
     16 test(() => {
     17    const outer = document.querySelector("#outer");
     18    assert_equals(outer.textContent, "Inside");
     19    assert_equals(document.querySelector("#container").shadowRoot, null);
     20 });
     21 </script>