tor-browser

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

template-contentmethod-reverse.html (627B)


      1 <!DOCTYPE HTML>
      2 <meta charset="utf-8" />
      3 <title>HTML partial updates: patch should appear after its target</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 <template contentmethod="replace">New content</template>
      9 <div id="placeholder">Old content</div>
     10 <script>
     11 test(() => {
     12    assert_equals(document.querySelector("#placeholder").innerText, "Old content");
     13    assert_equals(document.querySelector("template[contentmethod=replace]"), null, "Template should not attach");
     14 });
     15 </script>