Skip to main content
Version: v6

Invalid ARIA attribute detected

Invalid ARIA attribute detected — rule summary
FieldValue
Rule codeAria_Attribute_Invalid
WCAG conformance levelA
WCAG success criterion4.1.2 Name, Role, Value
Must be fixed at sourceNo

Description

ARIA (Accessible Rich Internet Applications) is a set of standards for adding accessible information to page elements. ARIA has a known list of attribute names which correspond with specific element roles. We detected an incorrect or unrecognized attribute beginning with 'aria-' which is not compatible with an element's current role. Check for spelling mistakes or remove the invalid attribute. A full list of ARIA attribute definitions are available here: https://www.w3.org/TR/wai-aria-1.1/#state_prop_def.

How to fix

Use only official and standardized values for ARIA attributes, and ensure that all ARIA attributes are supported by the corresponding element's role. Refer to the W3C's full list of ARIA attributes: https://www.w3.org/TR/wai-aria-1.1/#state_prop_def). Additionally, check that all values are spelled correctly and match a known, supported value for that attribute.