Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rule: aria-allowed-children #925

Closed
WilcoFiers opened this issue May 28, 2018 · 4 comments
Closed

rule: aria-allowed-children #925

WilcoFiers opened this issue May 28, 2018 · 4 comments
Labels
rules Issue or false result from an axe-core rule

Comments

@WilcoFiers
Copy link
Contributor

This one really surprised me, but there doesn't seem to be a rule that checks that an element is allowed certain children. For instance, the following isn't flagged by Axe:

<div role="listbox">
  <p role="button">button</p>
  <p role="option">option</p>
</div>
@WilcoFiers WilcoFiers added the rules Issue or false result from an axe-core rule label May 28, 2018
@marcysutton
Copy link
Contributor

@WilcoFiers isn't it the same problem as this old PR intended to solve? #623

@WilcoFiers
Copy link
Contributor Author

Nope, that rule checks that elements are allowed a certain role. So for instance an h1 isn't allowed to have role=button.

@straker
Copy link
Contributor

straker commented Sep 4, 2019

See w3c/aria#1033

@WilcoFiers
Copy link
Contributor Author

This rule is a duplicate of the more recent #2076

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rules Issue or false result from an axe-core rule
Projects
None yet
Development

No branches or pull requests

3 participants