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
- rename these test cases to -invalid"
- change the test cases to use allowed roles
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