Start scanning free

( Perceivable / WCAG 1.3.1 )

Element role is missing required child elements

This check maps to Info and Relationships. Use the guidance below to confirm the issue, understand who it affects and ship a fix.

Serious Level A WCAG 1.3.1 — Info and Relationships

What’s wrong

The element has an ARIA role but its required child roles are missing.

Why it matters

Screen reader users rely on role relationships to understand composite widgets. When child roles are missing, controls can be announced in the wrong order or not announced at all.

How to fix it

Use semantic HTML and valid ARIA so assistive technology gets the same state and structure as sighted users. Keep labels and states explicit in markup.

Before
<div role="listbox">
  <div>Option A</div>
  <div>Option B</div>
</div>
After
<div role="listbox">
  <div role="option" aria-selected="false">Option A</div>
  <div role="option" aria-selected="true">Option B</div>
</div>

If this pattern is generated by a component, fix it once in the shared component so every instance inherits the accessible behavior.

Learn more