Problem/Motivation
The oEmbedFormatter renders remote video content in an iframe element. This element should contain a title attribute for better accessibility.
Proposed resolution
Add the name of the media as the title of the oEmbed iframe
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ✅ Accessibility and Readability
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes and Update Helper on new feature change/addition
- ✅ Release varbase-9.0.6, varbase_media-9.0.9
Varbase update type:
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
- N/A
API changes
- N/A
Data model changes
- Issue #3264297 by hanii.gerges: Added title attribute to oEmbed iframe for accessibility
Issue fork varbase_media-3264297
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
hanii.gerges commentedComment #4
rajab natshahComment #5
hanii.gerges commentedComment #6
rajab natshahThanks, Hani for filing the issue, and the MR :)
Reviewed with Razem.
Only I had a 2nd code review.
Needs a basic check not to have
<iframe title="">or<iframe title=" ">In case the oEmbed media type had no name in any case. Or was not filled by the form mode selection.
Comment #7
rajab natshahComment #8
rajab natshahComment #9
rajab natshahComment #10
hanii.gerges commentedComment #17
hanii.gerges commentedi think instead of isset() we can use !empty()
because empty() will check if the value exists and not empty by default
and the if statement will be like this
Made a MR for this.
Comment #18
rajab natshahAgrees with that Hani.
Better to change it. Better coding style too.
Comment #21
rajab natshahComment #22
rajab natshahComment #23
rajab natshah✅ Released varbase_media-9.0.9
Comment #24
rajab natshah✅ Released varbase-9.0.6
Comment #25
rajab natshah