region-roles.html (1010B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>Region 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 <p>Tests <a href="https://w3c.github.io/aria/#region">region</a> and related roles, as well as the "name from author" rule in <a href="https://w3c.github.io/aria/#document-handling_author-errors_roles">9.1 Roles - handling author errors</a>.</p> 15 16 <!-- no label --> 17 <nav role="region" data-testname="region without label" data-expectedrole="navigation" class="ex">x</nav> 18 19 <!-- w/ label --> 20 <nav role="region" data-testname="region with label" data-expectedrole="region" aria-label="x" class="ex">x</nav> 21 22 <script> 23 AriaUtils.verifyRolesBySelector(".ex"); 24 </script> 25 26 </body> 27 </html>