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

WordPress Trac noreply at wordpress.org
Mon Mar 18 19:21:54 UTC 2019


#40245: Youtube embeds lack title attribute
--------------------------------------+----------------------------
 Reporter:  morriscountynj            |       Owner:  swissspidy
     Type:  enhancement               |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.2
Component:  Embeds                    |     Version:  2.9
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  accessibility
--------------------------------------+----------------------------

Comment (by afercia):

 > the patch currently applies to all iframe embeds, regardless of their
 source

 The patch only tries to set a title if the embed type is of type `rich` or
 `video`: it returns early if ` ! in_array( $data->type, array( 'rich',
 'video' ) `

 Looks like Twitter is `rich` but doesn't use an iframe (any longer?) and
 uses the shadow DOM instead.

 Regardless, this doesn't help us. We could certainly prepend `Video: `
 when the type is `video`, then the regex searches for an iframe but it's
 not possible to predict what a `rich` embed with iframe actually is: it
 could be a Tweet, a WordPress post, whatever.

 Anyways, having an iframe title is better than not having it :)

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


More information about the wp-trac mailing list