New rule: prefer-role-none
A new rule detecting elements with role="presentation"
and suggesting to use new synonym role="none"
.
In ARIA 1.1, the working group introduced none as a synonym to the presentation role, due to author confusion surrounding the intended meaning of the word "presentation" or "presentational." Many individuals erroneously consider role="presentation" to be synonymous with aria-hidden="true", and we believe role="none" conveys the actual meaning more unambiguously. - W3C WAI-ARIA
Examples
Incorrect:
<img role="presentation">
Correct:
<img role="none">
Options
None