WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Iframes: minimum spec

for

From: Isabel Holdsworth
Date: May 30, 2019 4:19AM


Thanks so much Birkir. Your pointers have completely resolved the
issue and enabled us to offer users a much simpler to use and more
enjoyable experience.

On 29/05/2019, Birkir R. Gunnarsson < <EMAIL REMOVED> > wrote:
> Basd on testing I did some years ago, Jaws takes its accessible name
> from the <title> element inside the iframe, while NVDA takes its
> accessible name from the title attribute of the <iframe> element.
> What happens if you put role="presentation" on the <iframe> and also
> remove the <title> attribute from inside it?
>
>
> On 5/29/19, Isabel Holdsworth < <EMAIL REMOVED> > wrote:
>> Hi Birkir,
>>
>> Great suggestion. I tried this one myself a while back but it didn't
>> work. The iframe was still exposed to JAWS, possibly due to security
>> considerations.
>>
>> Thanks, Isabel
>>
>> On 29/05/2019, Birkir R. Gunnarsson < <EMAIL REMOVED> > wrote:
>>> You could put role="presentation" on the <iframe> element (to
>>> basically hide it from the user). If the user is not supposed to
>>> perceive the iframe as a section of content that is separate from the
>>> page this is probably the best strategy. You should remove the title
>>> attribute from the <iframe> element if you do this, probably also the
>>> <title> element as well. The heading is good enough if the user is not
>>> supposed to perceive the iframe as a separate section.
>>>
>>>
>>>
>>> On 5/29/19, Isabel Holdsworth < <EMAIL REMOVED> > wrote:
>>>> Hi all,
>>>>
>>>> We're required to deliver some of our content within an iframe - this
>>>> is unfortunately not negotiable.
>>>>
>>>> The iframe has a title attribute, and its document has a <title> tag
>>>> and an h1 heading that all have the same (sometimes long) text, and
>>>> it's very laborious for screenreader users to keep listening to.
>>>> Younger users also find it very confusing.
>>>>
>>>> If the iframe didn't have a title attribute, or if its document didn't
>>>> have a <title> attribute, would it fail WCAG? The content delivered
>>>> inside the iframe is never displayed as a stand-alone page.
>>>>
>>>> Thanks as always, Isabel
>>>> >>>> >>>> >>>> >>>>
>>>
>>>
>>> --
>>> Work hard. Have fun. Make history.
>>> >>> >>> >>> >>>
>> >> >> >> >>
>
>
> --
> Work hard. Have fun. Make history.
> > > > >