This module automatically adds a descriptive title attribute to embedded iframe tags. This ensures compliance with accessibility guidelines by providing context for users who rely on screen readers, generating a title based on the iframe's source URL if one is not manually provided.
Synopsis
This text format filter helps ensure that embedded <iframe> tags include a title attribute, in order to comply with WCAG guidelines. When an iFrame does not have a title attribute, this filter parses the src attribute's URL and adds a title attribute that reads "Embedded content from [url]".
A number of Drupal filters generate iframes (e.g., media, video_filter, but their compliance with iFrame accessibility requirements varies. This filter is meant to be a universal band-aid to this particular guideline.
Requirements
This module requires no modules outside of Drupal core.
Under "Filter processing order," make sure that this filter is set to run after any HTML filtering, as well as after any filters that would be generating iFrames (e.g., video_filter).