A11yance / aria-query

Programmatic access to the ARIA specification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: Incorrect element role mappings

jlp-craigmorten opened this issue · comments

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.