WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Must elements with onclick handlers be focusable?

for

From: Patrick H. Lauke
Date: Jul 22, 2014 4:21AM


On 22/07/2014 10:59, Alastair Campbell wrote:
> I've been using a lot of tools recently, for obvious reasons[1], and quite
> a few seem to over-report this issue:
> "Elements with onclick handlers must be focusable"
[...]
> Do other people consider this a false positive?

It depends on the exact structures used. In general, it seems a very
facile simplification to generalise "if there's onclick it must be
focusable" ... it's not something that can be easily machine-tested, so
tools shouldn't pretend that they can.

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke