tor-browser

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

aria-owns-overlapping.html (675B)


      1 <!DOCTYPE html>
      2 <!-- Test that multiple overlapping aria-owns relation do not crash -->
      3 
      4 <html class="test-wait">
      5 <main id='great-grandparent'>
      6  <fieldset id="grandparent">
      7    <p id='parent'>
      8      <i id='child'></i>
      9    </p>
     10  </fieldset>
     11 </main>
     12 
     13 <script>
     14 document.addEventListener("DOMContentLoaded", () => {
     15  document.getElementById('child').setAttribute('aria-owns','grandparent');
     16  document.getElementById('great-grandparent').setAttribute('aria-owns','parent');
     17  requestAnimationFrame(() => {
     18    requestAnimationFrame(() => {
     19      document.documentElement.style.display="none";
     20      document.documentElement.className = '';
     21    });
     22  });
     23 });
     24 </script>
     25 </html>