Certain ARIA roles must contain particular children

How to fix the aria-required-children accessibility rule. ARIA.

What this rule checks

Ensure elements with an ARIA role that require child roles contain them

Who is affected

An ARIA role needs specific children (e.g. a list role needs listitems), and they are missing.

How to fix it

Add the required child roles, or use native HTML elements instead.

WCAG success criteria

When this rule fails, the page fails:

Find it on your own page

Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools.

More detail