tor-browser

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

tree-roles.tentative.html (1087B)


      1 <!doctype html>
      2 <html>
      3 <head>
      4  <title>Tentative: Tree related Role Verification Tests</title>
      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 </head>
     12 <body>
     13 
     14 <!--
     15  CORE-AAM requires that, for elements with roles not contained in the
     16  required context, user agents must ignore the role token and return the
     17  computed role as if the ignored role token had not been included.
     18  See https://w3c.github.io/core-aam/#roleMappingComputedRole
     19 -->
     20 <nav role="treeitem" data-testname="orphaned treeitem outside the context of tree" data-expectedrole="navigation" class="ex">x</nav>
     21 <button role="treeitem" data-testname="orphaned button with treeitem role outside tree context" data-expectedrole="button" class="ex">x</button>
     22 
     23 <script>
     24  AriaUtils.verifyRolesBySelector(".ex");
     25 </script>
     26 
     27 </body>
     28 </html>