Skip to content

aria-required-children: be less permissive of divs as child nodes #3462

@WilcoFiers

Description

@WilcoFiers

ARIA required context role, failed example 3

In the ARIA required context role ACT rules, failed example 3 currently isn't being failed by axe-core. Specifically, I think aria-required-children should have caught this:

<div role="list">
  <div aria-live="polite">
    <div role="listitem">List item 1</div>
    <div role="listitem">List item 2</div>
  </div>
</div>

Because of its global attribute, that div[aria-live] should not be ignored in the accessibility tree. How browsers do this varies. Firefox considers this a section inside a list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ACT RulesfixBug fixesprA pr has been created for the issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions