Skip to content

aria-required-children's reviewEmpty option is broken on hidden children #4010

@WilcoFiers

Description

@WilcoFiers

The following should be reported as incomplete of aria-required-children, rather than as a violation:

<div role="menu">
  <a href="#" role="menuitem" hidden>foo</a>
</div>

This bug was introduced in #3949, which told axe to ignore the roles of hidden children, but doesn't ignore hidden children when checking reviewEmpty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixBug fixesrulesIssue or false result from an axe-core rulesupport

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions