Skip to content

useValidAriaValues (HTML)

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

Enforce that ARIA state and property values are valid.

<span aria-checked="test">some text</span>
code-block.html:1:7 lint/a11y/useValidAriaValues ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

The value of the ARIA attribute aria-checked is not correct.

> 1 │ <span aria-checked="test">some text</span>
^^^^^^^^^^^^^^^^^^^
2 │

Use a valid value for the aria-checked attribute according to the WAI-ARIA specification.

The only supported values for the aria-checked property are:

- false
- true
- mixed

<span aria-labelledby="">some text</span>
code-block.html:1:7 lint/a11y/useValidAriaValues ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

The value of the ARIA attribute aria-labelledby is not correct.

> 1 │ <span aria-labelledby="">some text</span>
^^^^^^^^^^^^^^^^^^
2 │

The only supported value is a space-separated list of HTML identifiers.

Use a valid value for the aria-labelledby attribute according to the WAI-ARIA specification.

<span aria-checked="true">some text</span>
<span aria-labelledby="fooId barId">some text</span>