From Automated WCAG Monitoring Community Group
Jump to: navigation, search

This test belongs to 4.1.1 Parsing.

Version 1


This test checks accesskey attribute for all elements to have a unique value.



Test properties

Property Values
Test name Provide unique accesskeys
Test requirement 4.1.1 Parsing
Test mode Automatic
Test environment DOM
Test subject single web page

Test procedure


Test mode: earl:automatic

Select any element with an accesskey attribute. The following CSS selector could be used: *[accesskey]

Step 1

Test mode: earl:automatic

  • IF there is no list called 'knownAccesskeys':
    • Create an empty list 'knownAccesskeys;
  • Take the first character of the ACCESSKEY attribute as FirstChar
  • IF the FirstChar exists in 'knownAccesskeys':
    • Return SC4-1-1-accesskey-fail1
  • ELSE:
    • Add the FirstChar to 'knownAccesskeys'
    • Return SC4-1-1-accesskey-pass1

Property Value
TestCase SC4-1-1-accesskey
Identifier SC4-1-1-accesskey-pass1
Outcome passed
Pointer selector result

Property Value
TestCase SC4-1-1-accesskey
Identifier SC4-1-1-accesskey-fail1
Outcome failed
ErrorMessage The accesskey of this element has occurred before on this page
Pointer selector result