Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When the embedded object is replaced with an <iframe>
in media_youtube.js, it does not add a 'title' and a 'name' attribute to the <iframe>,
due to which the drupal page having these YT videos fails the 508-compliance check. Ideally, the <iframe>
should generate 'title' and 'name' attributes and they should be set as the title of of the video.
Thanks,
Sumit
Comment | File | Size | Author |
---|---|---|---|
#13 | 2129317-13.patch | 1.49 KB | stefan.r |
#8 | media_youtube.iframe-accessibility.patch | 1.49 KB | stefan.r |
Comments
Comment #1
sumitgupta2004 CreditAttribution: sumitgupta2004 commentedComment #2
sumitgupta2004 CreditAttribution: sumitgupta2004 commentedComment #3
sumitgupta2004 CreditAttribution: sumitgupta2004 commentedComment #4
mgiffordComment #5
stefan.r CreditAttribution: stefan.r commentedIframes don't support the "alt" attribute, but they should still have a "name" attribute for accessibility reasons.
Comment #6
stefan.r CreditAttribution: stefan.r commentedComment #7
stefan.r CreditAttribution: stefan.r commentedComment #8
stefan.r CreditAttribution: stefan.r commentedAttached is a patch which gets the file object from the database (and thus gets the correct video title, instead of just the video ID, which is meaningless as far as accessibility is concerned).
It also adds the "name" attribute (which will be equal to the video title and the "title" attribute).
I think the issue summary is outdated as there is no
media_youtube.js
in 2.x or any Iframe being created in javascript. There is also already a "title" attribute, it's just the "name" attribute that's missing.Comment #9
stefan.r CreditAttribution: stefan.r commentedCan anyone please review this? Thanks!
Comment #10
stefan.r CreditAttribution: stefan.r commentedComment #11
stefan.r CreditAttribution: stefan.r commentedComment #12
bneil CreditAttribution: bneil commentedTesting the latest dev, the title attribute is already provided on the iFrame.
Comment #13
stefan.r CreditAttribution: stefan.r commentedRe-roll against 3.x
Comment #15
joseph.olstadThanks stefan.r!