Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.4 KB

File metadata and controls

45 lines (33 loc) · 1.4 KB
Title Inappropriate Role Value Check
id role_02
type decr
elem all
test roleValidNot
score 3
level AA
trust 1
top 1
steps 1
ref 674b10
scs 1.3.4
dis 43353
result failed

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:

  1. Locate the element where the role attribute has an invalid value.
  2. Replace its value with a valid one that suits its purpose, according to WAI-ARIA's specification.

Resources