[wp-trac] [WordPress Trac] #40245: Youtube embeds lack title attribute (was: Youtube embed -- need space to put title="" in iframe)
WordPress Trac
noreply at wordpress.org
Thu Mar 23 20:40:37 UTC 2017
#40245: Youtube embeds lack title attribute
----------------------------+------------------------------
Reporter: morriscountynj | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: 2.9
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Changes (by swissspidy):
* version: 4.7.3 => 2.9
* type: feature request => enhancement
Comment:
Hey there,
Welcome to WordPress Trac and thanks for your report!
WordPress embeds have a title attribute for exact these reasons.
Unfortunately, YouTube doesn't add a title attribute themselves. oEmbed
fetches the `<iframe>` code directly from YouTube. See
https://www.youtube.com/oembed?url=http%3A//youtube.com/watch%3Fv%3DM3r2XDceM6A&format=json
for an example.
It seems like Drupal fixed this on their own by adding a custom title
attribute, see https://www.drupal.org/node/2085749. Apparently they also
added a name attribute: https://www.drupal.org/node/2129317. We could
certainly do the same, although I'd love to see YouTube fixing this on
their end.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40245#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list