WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Roles defining elements in generalDoes WCAG require that when you click a label it checks the checkbox or radio button?


From: Chaals McCathie Nevile
Date: Nov 26, 2015 8:12PM

On Fri, 27 Nov 2015 08:42:59 +1100, Alastair Campbell < <EMAIL REMOVED> >

> Chaals McCathie Nevile wrote:
>> I suspect that browser makers will say it is impossible, very difficult,
>> and possibly a very bad idea - although more likely I expect "not clear
>> what the benefit is".
> One point of benefit: People often assume that roles bring the behaviours
> with them.
> I came back to accessibility things after my focus being elsewhere for a
> while, and almost immediately made that mistake!
> Doing training with and trouble-shooting for developers, I think it's a
> common error. It would be interesting to do a poll where we ask
> something
> like:
> Does pressing enter on the keyboard activate this?
> <span role="button">Submit</span>
> I think a lot of (normal) developers would answer yes.

Yeah, personally I think that is true, and that a lot of developers saying
that would be right. They would have a lot of time they currently spend
checking whether they copy-pasted code correctly in making new and more
interesting things…

Another benefit is that performance improves, since there are no
js-parsing blips.


Charles McCathie Nevile - web standards - CTO Office, Yandex
<EMAIL REMOVED> - - - Find more at http://yandex.com