Skip to content

ariaUnsupportedElements

Reports ARIA attributes on elements that don't support them.

✅ This rule is included in the jsx logical preset.

Specific reserved DOM elements do not support ARIA roles, states, and properties. Those elements generally are either not visible (like meta, script, style) or have specific semantic meaning (like body or html).

This is required for WCAG 4.1.2 compliance.

<meta charset="UTF-8" aria-hidden="false" />
<script role="application" />
<style aria-label="styles" />

You should always use this rule to ensure ARIA attributes are only applied to elements that support them.

Made with ❤️‍🔥 in Boston by Josh Goldberg and contributors.