W3C home > Mailing lists > Public > public-aria@w3.org > October 2016

Why is aria-expanded not supported on role=menuitem plus aria-haspopup?

From: Bryan Garaventa <bryan.garaventa@ssbbartgroup.com>
Date: Wed, 19 Oct 2016 19:05:22 +0000
To: ARIA Working Group <public-aria@w3.org>
Message-ID: <CY4PR03MB27445820987E6CEF0C0B1D6098D20@CY4PR03MB2744.namprd03.prod.outlook.com>
I'm working on a project regarding menus, and this doesn't make any sense to me.

It should be possible to convey the expanded state of a menuitem that is a submenu that includes aria-haspopup="true" on it, like so:

<a href="#" role="menuitem" aria-haspopup="true" aria-expanded="false"


<a href="#" role="menuitem" aria-haspopup="true" aria-expanded="true"

However this is not in the ARIA 1.1 spec:

This is very important for touch screen devices to determine which menuitem node is actually expanded versus others that are not when these open submenus.

In contrast, I see that aria-expanded shows that it inherits into role=menu and role=menubar, but if the menu container is already rendered and perceivable to ATs then the menu is implicitly expanded anyway, so it's useless to have aria-expanded on these roles.

Bryan Garaventa
Accessibility Fellow
SSB BART Group, Inc.
415.624.2709 (o)
Received on Wednesday, 19 October 2016 19:05:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:58:34 UTC