ARIA label used on role that prohibits naming Web Standard
Description
Cannot use aria-label or aria-labelledby on elements and roles that prohibit naming.
Help
The div and span elements have an implicit role of generic and cannot be named unless they have a role attribute. The following roles cannot be named: caption code deletion emphasis generic insertion paragraph presentation strong subscript superscript
Applicable standards
Change history
- 6.47 Dec 2022 Now fires on roles with name prohibited in ARIA 1.2.
- 5.34 Jul 2019 Don’t fire on contenteditable.
- 5.33 Apr 2019 Added to W3 validator in March 2019.
This page describes a web site issue detected in HTML documents by SortSite Desktop and OnDemand Suite.
Rule ID: W3cAriaLabelMisuse