tor-browser

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

aria-owned-with-role-change.html (690B)


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