wordpress-develop/tests/phpunit/tests/oembed
Andrea Fercia 7834856fcb 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.


git-svn-id: https://develop.svn.wordpress.org/trunk@44942 602fd350-edb4-49c9-b593-d223f7449a82
2019-03-20 17:21:56 +00:00
..
controller.php General: Fix some code formatting issues. 2018-12-14 03:24:35 +00:00
discovery.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
filterResult.php Code is Poetry. 2017-11-30 23:09:33 +00:00
filterTitleAttributes.php Accessibility: Ensure embed iframes have a title attribute. 2019-03-20 17:21:56 +00:00
getResponseData.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
headers.php Code is Poetry. 2017-11-30 23:09:33 +00:00
postEmbedUrl.php Code is Poetry. 2017-11-30 23:09:33 +00:00
template.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
WpEmbed.php Tests: Add missing parent::setUp() calls to all test classes. 2019-01-14 04:54:01 +00:00
wpOembed.php Code is Poetry. 2017-11-30 23:09:33 +00:00