WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Titles for iframes

for

From: Jonathan Avila
Date: Feb 19, 2015 9:11AM


> If a non-functional iFrame were given a role of "presentation" would that hide its existence from screenreaders?

The role of presentation is meant to hide the semantics of the element and any required descendant elements not hide the contents of the frame. So, while this might work for frames with no visible content aria-hidden might be a more appropriate attribute. Also iframes may be placed in the focus order by the browser so non-interactive frames may use tabindex=-1. However, be careful about applying tabindex=-1 to frames -- when a frame does contain interactive content applying this will prevent keyboard access into the interactive controls within the frame.

Jonathan

-- 
Jonathan Avila 
Chief Accessibility Officer
SSB BART Group 
<EMAIL REMOVED>
Phone 703.637.8957  
Follow us: Facebook | Twitter | LinkedIn | Blog | Newsletter