Disallow usage of abstract WAI-ARIA roles
- Rule ID:
- no-abstract-role
- Category:
- Accessibility
- Standards:
- WAI ARIA
WAI-ARIA defines a list of abstract roles which cannot be used by authors:
commandcompositeinputlandmarkrangeroletypesectionsectionheadselectstructurewidgetwindow
Typically one of the role subclasses should be used instead.
Rule details
Examples of incorrect code for this rule:
<div role="landmark"></div>
Examples of correct code for this rule:
<div role="navigation"></div>
Version history
- 8.12.0 - Rule added.