WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Titles for iframes

for

From: Brooks Newton
Date: Feb 11, 2015 12:07PM


Hi All,

For iframes with content that isn't intended for consumption by any user, such as iframes that hold third-party tracking tags, how about using the HTML5 hidden attribute and / or the CSS display:none declaration? Doesn't using aria-hidden="true" on the iframe element also make sense in this case? Seems to me that the semantic relevance of setting role="presentation" belies the page author's intended purpose - especially when you consider the specific context of the tracking tag iframe example I brought up... which is that no page user is supposed to know the hidden iframe content exists on the page. What are others thoughts?

Credit to one of Steve's past posts for discussing the use of the three aforementioned techniques for hiding content from AT users
- http://www.paciellogroup.com/blog/2012/05/html5-accessibility-chops-hidden-and-aria-hidden/

Brooks Newton