RE: question about use of aria-haspopup and aria-expanded

For  example, for a menu button it is nice to know that the menu popup has been expanded/toggled visible.


-          Stefan

From: Steve Faulkner [mailto:faulkner.steve@gmail.com]
Sent: Mittwoch, 6. September 2017 10:58
To: ARIA Working Group <public-aria@w3.org>
Subject: question about use of aria-haspopup and aria-expanded

Hi all,
The use of both aria-haspopup and aria-expanded together is conforming in ARIA 1.1,

code example:

<button aria-haspopup="true" aria-expanded="true">true +true</button>

codepen with test cases: https://codepen.io/stevef/pen/MvxRVx

demo: https://s.codepen.io/stevef/debug/MvxRVx


but I am wondering if this combination has any use cases? And also if the combined state information could be confusing?

--

Regards

SteveF
Current Standards Work @W3C<http://www.paciellogroup.com/blog/2015/03/current-standards-work-at-w3c/>

Received on Wednesday, 6 September 2017 10:15:57 UTC