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: Alastair Campbell
Date: Nov 26, 2015 2:42PM

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
Does pressing enter on the keyboard activate this?
<span role="button">Submit</span>

I think a lot of (normal) developers would answer yes.