An iframe should have some alternative content for screen readers
http://www.w3.org/TR/WCAG20-TECHS/H64.html

Comments

plazma’s picture

StatusFileSize
new1005 bytes

Patch to provide accessibility text

plazma’s picture

Status: Active » Needs review
plazma’s picture

guschilds’s picture

StatusFileSize
new717 bytes

Hi plazma,

Thanks for the patch!

In Example 2 in the link you provided, the alternative content is a link. That link's href matches the iframe's src and the link's text matches the iframe's title attribute value. I think it's best to follow that example here because:

  • I can't find any other resources making specific suggestions for embedded YouTube video iframes
  • it seems like the alternative content is only needed by browsers/tools that don't understand iframe elements
  • I think YouTube itself is accessible (I could be wrong here)

I've attached a patch that does so. Please have a look and let me know what you think.

Thanks,
Gus

  • guschilds committed ef4801a on 7.x-1.x
    Issue #2511740 by plazma, guschilds: Added alternative content to iframe...

  • guschilds committed 47690f0 on 8.x-1.x
    Issue #2511740 by plazma, guschilds: Added alternative content to iframe...
guschilds’s picture

Status: Needs review » Fixed

I've committed the patch from #4 to the 7.x-1.x branch and it will be a part of a future 7.x-1.7 release. I've also committed an equivalent to the 8.x-1.x branch. Thanks again for the suggestion and the initial patch.

  • guschilds committed e748229 on 8.x-1.x
    Issue #2511740 by plazma, guschilds: Documented alternative content...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.