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