[wp-trac] [WordPress Trac] #40245: Youtube embeds lack title attribute

WordPress Trac noreply at wordpress.org
Wed Mar 20 17:22:03 UTC 2019


#40245: Youtube embeds lack title attribute
---------------------------------------------+----------------------------
 Reporter:  morriscountynj                   |       Owner:  swissspidy
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  5.2
Component:  Embeds                           |     Version:  2.9
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  accessibility
---------------------------------------------+----------------------------
Changes (by afercia):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44942" 44942]:
 {{{
 #!CommitTicketReference repository="" revision="44942"
 Accessibility: Ensure embed iframes have a title attribute.

 Screen reader users rely on the iframe title attribute to describe the
 contents of iframes. A meaningful title attribute allows to quickly
 identify the iframe content, so users can determine which iframe to enter
 and explore in detail or skip if desired.
 Note: this is the only case where a title attribute is required for
 compliance with the W3C Web Content Accessibility Guidelines (WCAG).

 - checks for oEmbed response of type `video` or `rich`
 - checks if they use an iframe
 - fetches the title (if any) from the oEmbed response
 - adds the title to the embed iframe

 Props bamadesigner, TomHarrigan, swissspidy, jrf, afercia.
 Fixes #40245.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40245#comment:60>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list