oEmbed iframes must have unique title attributes

Created on 16 June 2020, over 4 years ago
Updated 4 August 2024, 3 months ago

Problem/Motivation

web/core/modules/media/src/Plugin/Field/FieldFormatter/OEmbedFormatter.php will "Render videos and rich content in an iframe for security reasons."

This results in an iframe within an iframe, both with the same title, which then results in this accessibility error (found with axe Chrome extension): "Frames must have a unique title attribute" (https://dequeuniversity.com/rules/axe/3.5/frame-title-unique)

Proposed resolution

I'm not sure what the best solution is here. Maybe something like using "iFrame for 'title'" as the title on the parent iframe, and just "title" on the child?

Remaining tasks

Prepare this for a Usability Review

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
MediaΒ  β†’

Last updated about 12 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States Kasey_MK

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Needs usability review

    Used to alert the usability topic maintainer(s) that an issue significantly affects (or has the potential to affect) the usability of Drupal, and their signoff is needed. When adding this tag, make it easy to review the issue. Make sure the issue summary describes the problem and the proposed solution. Screenshots usually help a lot! To get sign-off on issues with the "Needs usability review" tag, post about them in the #ux channel on Drupal Slack, and/or attend a UX meeting to demo the patch and get direct feedback from designers/UX folks/product management on next steps. If an issue represents a significant new feature, UI change, or change to the general "user experience" of Drupal, use Needs product manager review instead. See the scope of responsibilities for product managers.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024