[wp-trac] [WordPress Trac] #61795: Lighthouse shows invalid ARIA role error for role="group"
WordPress Trac
noreply at wordpress.org
Thu Aug 8 15:19:25 UTC 2024
#61795: Lighthouse shows invalid ARIA role error for role="group"
----------------------------------------------+----------------------------
Reporter: dilipbheda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Toolbar | Version:
Severity: normal | Resolution:
Keywords: has-patch has-testing-info close | Focuses: ui,
| accessibility
----------------------------------------------+----------------------------
Changes (by joedolson):
* keywords: has-patch has-testing-info => has-patch has-testing-info close
Comment:
The test in Lighthouse is incorrect; the `group` role is permitted on list
items as long as the parent list does *not* have the `list` role. The
parent node in this case is a `ul` with `role="menu"`, so it is correct.
This is correct per [https://html.spec.whatwg.org/multipage/grouping-
content.html#the-li-element the HTML ARIA specifications for `li`].
Recommend closing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61795#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list