aria-unsupported-elements
Configuration
rslint.config.ts
Certain HTML elements do not support ARIA roles, states, or properties. Adding
ARIA attributes (any aria-* attribute) or a role attribute to these elements
is invalid.
The reserved elements are: base, col, colgroup, head, html, link,
meta, noembed, noscript, param, picture, script, source, style,
title, track.
Rule Details
This rule enforces that the reserved DOM elements do not contain role or
ARIA attributes. Attribute names are matched case-insensitively.
Examples of incorrect code for this rule:
Examples of correct code for this rule: