WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Using aria-selected=true on any HTML element?

for

From: Benjamin Hawkes-Lewis
Date: Aug 29, 2012 1:39AM


On Tue, Aug 21, 2012 at 8:36 PM, Paul J. Adam < <EMAIL REMOVED> > wrote:
> The WAI-ARIA spec states that the aria-selected state is only used in roles gridcell, option, row, and tab. <http://www.w3.org/TR/wai-aria/states_and_properties#aria-selected>;
>
> Is it bad to use aria-selected=true on a HTML widget with a selected state that does not fall into one of these roles? Like a list item or link?
>
> If aria selected should not be used on links or list items then how would you communicate state to a screen reader? Visually hidden text? Title attribute?

What sort of selection are you talking about here, that would apply to
links or list items?

--
Benjamin Hawkes-Lewis