RE: Query about intent of aria-expanded

Marco Zehe wrote:

“I believe so, and I am recommending it be used that way. I even wrote an
ARIA tip about it:
http://www.marcozehe.de/2010/02/10/easy-aria-tip-5-aria-expanded-and-aria-co
ntrols/”

 

Thanks Marco.

 

Your article recommends putting aria-expanded “on the element that actually
does the magic (the same element that has the onclick handler or
click/keyboard event listener)”. This makes complete sense.

 

The spec says something slightly different though. 

 

“Indicates whether the element, or another grouping element it controls, is
currently expanded or collapsed.”

 

It may just be mis-placed commas making the language ambiguous, but if you
take out the middle clause of that sentence, it reads like this:

 

“Indicates whether the element is currently expanded or collapsed.”

 

Which implies something very different, that aria-expanded can be applied to
an element that can itself be expanded or collapsed.

 

I think it is just ambiguous spec text, but wanted to sanity check my
thinking before filing a bug. 

 

Léonie.

 

 

--

Léonie Watson – Senior Accessibility Engineer, TPG

@LeonieWatson @PacielloGroup

 

 

Received on Tuesday, 9 September 2014 15:38:10 UTC