tor-browser

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

property-reflection-idl-setters.html (1128B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <script src="/html/resources/common.js"></script>
      5  <script src="/resources/testharness.js"></script>
      6  <script src="/resources/testharnessreport.js"></script>
      7  <script src="/resources/testdriver.js"></script>
      8  <script src="/resources/testdriver-vendor.js"></script>
      9  <script src="/resources/testdriver-actions.js"></script>
     10  <script src="/wai-aria/scripts/aria-utils.js"></script>
     11  <script src="resources/property-reflection-helper.js"></script>
     12 </head>
     13 <body>
     14  <div id="host-container"></div>
     15  <script>
     16    function append_test_declaratively_with_invalid_ref_target(host_container, referenced_element_type) {
     17      host_container.setHTMLUnsafe(`
     18      <div id="host-id">
     19        <template shadowrootmode="open" shadowrootreferencetarget="invalid">
     20          <${referenced_element_type} id="target"></${referenced_element_type}>
     21        </template>
     22      </div>`);
     23      const host = host_container.firstElementChild;
     24      return host;
     25    }
     26 
     27    run_test_for_all_reflecting_properties(append_test_declaratively_with_invalid_ref_target, test_idl_setter, "");
     28  </script>
     29 </body>
     30 </html>