WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Must elements with onclick handlers be focusable?

for

From: Alastair Campbell
Date: Jul 22, 2014 7:53AM


Birkir R. Gunnarsson wrote:

> Basically, we have to ask ourselves, can we make these tools smarter?
> Can they detect and interpret Javascript patterns and understand the
> purpose of the onclick functionality?
>
>
I guess the point is that it can only "flag" them, they can't be confirmed
issues.

To detect this pattern, it would have to detect the onclick, work out that
the script forwards to a particular URL, and check if that link is
available to the keyboard user. Tall order indeed!

On the other hand, as Jonathan suggested: If you could provide an Xpath or
CSS selector for things to ignore for that issue, that would be a lot
easier.

-Alastair