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 08:58:56 UTC