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

Incorrect element role mappings #553

Open
jlp-craigmorten opened this issue May 6, 2024 · 0 comments · May be fixed by #550
Open

Incorrect element role mappings #553

jlp-craigmorten opened this issue May 6, 2024 · 0 comments · May be fixed by #550

Comments

@jlp-craigmorten
Copy link
Contributor

jlp-craigmorten commented May 6, 2024

The mappings for hgroup, s, and search elements are missing or are incorrect/outdated.

Updates needed:

  • the hgroup element should have the group role and not the generic role.
  • the s element should have the deletion role.
  • the search element should have the search role.

See https://www.w3.org/TR/html-aria/#docconformance:

HTML element Implicit ARIA semantics (explicitly assigning these in markup is NOT RECOMMENDED) ARIA role, state and property allowances
hgroup role=group Any role, though group SHOULD NOT be used.

Otherwise, global aria-* attributes and any aria-* attributes applicable to the allowed roles.
s role=deletion Any role, though deletion is NOT RECOMMENDED.

Naming Prohibited

Otherwise, global aria-* attributes and any aria-* attributes applicable to the allowed roles.
search role=search Roles: form, group, none, presentation or region. (search is also allowed, but NOT RECOMMENDED.)

Global aria-* attributes and any aria-* attributes applicable to the allowed roles.

Other relevant specs:

See also Web Platform Tests for HTML-AAM roles.

@jlp-craigmorten jlp-craigmorten linked a pull request May 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant