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 thegroup
role and not thegeneric
role. - the
s
element should have thedeletion
role. - the
search
element should have thesearch
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:
- https://www.w3.org/TR/html-aam-1.0/#el-hgroup
- https://www.w3.org/TR/html-aam-1.0/#el-s
- https://www.w3.org/TR/html-aam-1.0/#el-search
See also Web Platform Tests for HTML-AAM roles.