Skip to content

jsx_a11y/aria-unsupported-elements Correctness

🛠️ An auto-fix is available for this rule.

What it does

Certain reserved DOM elements do not support ARIA roles, states and properties. This is often because they are not visible, for example meta, html, script, style. This rule enforces that these DOM elements do not contain the role and/or aria-* props.

Example

Examples of incorrect code for this rule:

jsx
<meta charset="UTF-8" aria-hidden="false" />

Examples of correct code for this rule:

jsx
<meta charset="UTF-8" />

References

Released under the MIT License.