Skip to content

ariaUnsupportedElements

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

✅ This rule is included in the jsx logical and logicalStrict presets.

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.

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

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

Made with ❤️‍🔥 around the world by the Flint team and contributors.