ARIA
Give composite ARIA roles the children they need
Rule ID: PF-ROLE-REQUIRED-CHILDREN
- WCAG A
- 1.3.1 Info and Relationships
- W3C ACT aligned
Why it matters
Roles such as list, listbox, menu, tablist, tree, grid and table describe a container of particular items, and assistive technology relies on those items to report counts and positions, e.g. "tab 2 of 3". When the expected child roles are missing, or other roles sit in their place, that structure is lost. This maps to WCAG 1.3.1 Info and Relationships (Level A).
Who it affects
- Screen reader users
- People who customise how content is presented
How to fix it
Make sure each container owns its required children, such as role="tab" inside role="tablist" or role="option" inside role="listbox", either in the DOM or through aria-owns. Remove or correct any child that carries an unrelated role.
<div role="tablist" aria-label="Account settings">
<button type="button" role="tab" aria-selected="true">Profile</button>
<button type="button" role="tab" aria-selected="false" tabindex="-1">Billing</button>
</div>How to verify a fix
Scan the page again: the element should no longer be listed for this rule. Then check it the way people use it, for example with a keyboard or a screen reader, since a passing rule shows the markup is right, not that the experience works.
What automated testing can confirm
This is an automated rule that runs on every Pallyfi scan. A pass means the rule found no failing elements in what was rendered at scan time; it doesn’t cover content behind interactions the scan didn’t reach, and some criteria still need a person to check with a keyboard or screen reader. When the rule can’t decide on its own, the element is listed under Needs review instead. Manual audits record human evidence alongside the automated result.
Check your site for this
Quick Scan checks a public page against every rule Pallyfi runs and shows each failing element.