Rule
Redundant ARIA attributes
aria attributes should not duplicate native HTML attributes.
- Rule
redundant-aria- Type
- Best practice, not a WCAG requirement. It runs when Best practices is switched on.
- Severity
- Minor
What it checks
The rule fails an element that carries both an ARIA attribute and the native HTML attribute that already does the same job: aria-required with required, aria-disabled with disabled, aria-readonly with readonly, aria-placeholder with placeholder, or aria-checked with checked. It also fails aria-hidden="false", which does nothing reliable.
The browser already passes the native state to assistive technology. The duplicate adds nothing for the listener, and when one is updated without the other the two can disagree.
Example
Fails
<label for="email">Email</label>
<input id="email" type="email" required aria-required="true">
Passes
<span role="checkbox" aria-checked="false" tabindex="0">Send me updates</span>
The engine is tested against both examples.
How to fix it
Remove the ARIA attribute and keep the native one. Remove aria-hidden="false" altogether.
Check your own pages
This rule runs in every pour audit: the browser extension, the bookmarklet, the command line and the editor. Get pour, free.