tor-browser

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

aria-owns-from-aria-hidden-subtree.html (756B)


      1 <!DOCTYPE html>
      2 <html class="test-wait">
      3 <!-- Test that setting aria-owns from an aria-hidden subtree does not crash -->
      4 <script>
      5 document.addEventListener("DOMContentLoaded", () => {
      6  requestAnimationFrame(() => {
      7    requestAnimationFrame(() => {
      8      document.getElementById('owner').removeAttribute('aria-owns');
      9      requestAnimationFrame(() => {
     10        requestAnimationFrame(() => {
     11          document.documentElement.className = '';
     12        });
     13      });
     14    });
     15  });
     16 });
     17 </script>
     18 </head>
     19 <body>
     20 <main aria-hidden="true">
     21  <fieldset id='owner' aria-owns="paragraph1">
     22    Text
     23  </fieldset>
     24 </main>
     25 
     26 <div role="complementary" aria-label="Natural parent">
     27  <p id="paragraph1">
     28    <mark>
     29      Child
     30    </mark>
     31  </p>
     32 </div>
     33 </body>
     34 </html>