Skip to content

useValidAriaProps (HTML)

biome.json
{
"linter": {
"rules": {
"a11y": {
"useValidAriaProps": "error"
}
}
}
}

Ensures that ARIA properties aria-* are all valid.

<input type="text" aria-labell="" />
code-block.html:1:20 lint/a11y/useValidAriaProps  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

The element contains an invalid ARIA attribute.

> 1 │ <input type="text" aria-labell="" />
^^^^^^^^^^^^^^
2 │

aria-labell is not a valid ARIA attribute.

> 1 │ <input type="text" aria-labell="" />
^^^^^^^^^^^^^^
2 │

Unsafe fix: Remove the invalid aria-* attribute.
Check the list of all valid aria-* attributes.

1 │ <input·type="text"·aria-labell=""·/>
---------------
<div aria-lorem="foobar"></div>
code-block.html:1:6 lint/a11y/useValidAriaProps  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

The element contains an invalid ARIA attribute.

> 1 │ <div aria-lorem="foobar"></div>
^^^^^^^^^^^^^^^^^^^
2 │

aria-lorem is not a valid ARIA attribute.

> 1 │ <div aria-lorem="foobar"></div>
^^^^^^^^^^^^^^^^^^^
2 │

Unsafe fix: Remove the invalid aria-* attribute.
Check the list of all valid aria-* attributes.

1 │ <div·aria-lorem="foobar"></div>
-------------------
<input type="text" aria-label="Enter your name" />
<div aria-hidden="true"></div>