WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Tab focus going to the beginning of Iframe:

for

From: JP Jamous
Date: Dec 1, 2016 10:21AM


RAM,

It sounds to me like the browser is considering the iframe as an object, which it is, but allowing it to obtain keyboard focus.

If the user is tabbing through the form with a screen reader, it might be confusing to jump from the outer links to the inner ones. So selecting the iframe and announcing its title might give the user a better image of how the page is laid out.

If you want to bypass the iframe, have you tried to set its tabindex="-1" and see if that makes a different?

You can also write onfocus event that moves the tab focus to the first link in the iframe as soon as the iframe gets the focus.

What you are experiencing does not violate WCAG. It is more of a UX issue.