← All analysers · Multi-model analysers

ARIASemanticAnalyzer

Validates ARIA role / state / property combinations against the WAI-ARIA spec.

What it detects

ARIA roles have constraints on which states and properties they can carry, which children are valid, and which parent contexts they require. This analyser reports invalid combinations — `role="option"` outside a `role="listbox"`, `aria-required` on an element whose role doesn't allow it, and so on.

WCAG criteria

  • 4.1.2Name, Role, Value
  • 1.3.1Info and Relationships

Source

analyzers/ARIASemanticAnalyzer.ts

More