Skip to content

ARIA group/rowgroup roles with disallowed child roles should be invalid #2078

Closed

Description

@dd8

The ARIA 1.2 and 1.3 specs restrict the allowed children of some roles. This was called "Required Owned Elements" in ARIA 1.2, then clarified to "Allowed Child Elements" in ARIA 1.3: w3c/aria#1454

menu:
group → menuitem
group → menuitemradio
group → menuitemcheckbox
menuitem
menuitemcheckbox
menuitemradio
seperator (added in ARIA 1.3)

This test case contains Menu → group → button so should be invalid:
html-aria/author-requirements/575.html

tree:
treeitem
group → treeitem

This test case contains Tree → group → button so should be invalid:
html-aria/author-requirements/576.html

rowgroup:
row

This test case contains Grid → rowgroup → button so should be invalid:
html-aria/author-requirements/577.html

Edit: there's a couple of ways to fix this

  1. rename these test cases to -invalid"
  2. change the test cases to use allowed roles

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions