tor-browser

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

template-contentmethod-only-html-002.html (692B)


      1 <!DOCTYPE HTML>
      2 <meta charset="utf-8" />
      3 <title>HTML partial updates: template with contentmethod does not work in XHTML</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 <body>
      8 <script>
      9 promise_test(async () => {
     10    const iframe = document.createElement("iframe");
     11    iframe.src = "resources/contentmethod-root.xhtml";
     12    document.body.append(iframe);
     13    await new Promise(resolve => iframe.addEventListener("load", resolve));
     14    const {contentDocument} = iframe;
     15    assert_not_equals(contentDocument.querySelector("#patch"), null);
     16 });
     17 </script>