role-supports-aria-props
Enforce that elements with explicit or implicit roles defined contain only aria-*
properties supported by that role
. Many ARIA attributes (states and properties) can only be used on elements with particular roles. Some elements have implicit roles, such as <a href="#" />
, which will resolve to role="link"
.
References
Rule details
This rule takes no arguments.
Succeed
Fail
Last updated