Describe the bug
ARC Toolkit marks lists as invalid when the structure is list -> group -> listitem. According to the MDN documentation on the list role, this structure should be valid:
Elements with role list must have one or more elements with the role listitem as children, or one or more elements with the role of group that have one or more elements with the listitem role as children.
To Reproduce
Steps to reproduce the behavior:
- Create a
ul or ol element with role="list".
- Inside, nest a
div with role="group".
- Place
li elements with role="listitem" inside the group.
- Run ARC Toolkit on the page.
- See reported errors.
Expected behavior
The list -> group -> listitem pattern should be considered valid, and no errors should be reported.
Screenshots
If applicable, include ARC Toolkit output highlighting the reported issues.
Version information
- Browser and version: Chrome 38.0.7204.184
- OS: macOS 13.7.5 (22H527)
- ARC Toolkit version: 5.7.10
Errors reported by ARC Toolkit
- ARIA widget has an incorrect owned element, Description: The
group element is not expected inside the list role.
- The listitem role is missing the {{requiredContextRole}} required context role.
- The
<li> list item elements lack an appropriate <ol> (ordered list) or <ul> (unordered list) parent element.
Additional context
Based on MDN and ARIA specification, the list -> group -> listitem structure should be valid. ARC Toolkit appears to incorrectly flag this as an error.
Describe the bug
ARC Toolkit marks lists as invalid when the structure is
list -> group -> listitem. According to the MDN documentation on thelistrole, this structure should be valid:To Reproduce
Steps to reproduce the behavior:
ulorolelement withrole="list".divwithrole="group".lielements withrole="listitem"inside the group.Expected behavior
The
list -> group -> listitempattern should be considered valid, and no errors should be reported.Screenshots
If applicable, include ARC Toolkit output highlighting the reported issues.
Version information
Errors reported by ARC Toolkit
groupelement is not expected inside thelistrole.<li>list item elements lack an appropriate<ol>(ordered list) or<ul>(unordered list) parent element.Additional context
Based on MDN and ARIA specification, the
list -> group -> listitemstructure should be valid. ARC Toolkit appears to incorrectly flag this as an error.