contextual-roles.tentative.html (915B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>Tentative: Contextual 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 New sectionheader and sectionfooter roles. 16 See https://github.com/w3c/aria/pull/1931 17 --> 18 <main> 19 <div role="sectionfooter" data-testname="role is sectionfooter (in main)" data-expectedrole="sectionfooter" class="ex">x</div> 20 </main> 21 <main> 22 <div role="sectionheader" data-testname="role is sectionheader (in main)" data-expectedrole="sectionheader" class="ex">x</div> 23 </main> 24 25 <script> 26 AriaUtils.verifyRolesBySelector(".ex"); 27 </script> 28 29 </body> 30 </html>