Inappropriate Role Value Check
Description
The “Inappropriate Role Value Check” evaluates whether there is any invalid role attribute value on HTML elements.
Example outcome
I located 1 role attribute with invalid values.
Impact
- Visual Impairments: Elements with invalid roles are ignored or misidentified, affecting context or navigation.
- Motor Impairments: Missed landmarks (e.g.,
main,navigation) break expected keyboard shortcuts. - Cognitive Disabilities: Misleading or missing roles reduce clarity of structure and purpose.
Fixes
To address role attributes with invalid values:
- Locate the element where the
roleattribute has an invalid value. - Replace its value with a valid one that suits its purpose, according to WAI-ARIA’s specification.