iFrame Title Filter

Submitted by twfahey on Wed, 03/14/2018 - 12:17
Language / Framework

The iFrame Title Filter module is a solution for any situation on a Drupal site where you have a "WYSIWYG" (What you see is what you get) input that content editors are utilizing to embed iFrames. This typically comes up when doing things like adding a YouTube video inside of the Body field on a node. The idea is that while some embed codes or users may provide the "title" attribute, this is clearly not always the case, as seen in the wild on many sites. The WCAG 2.0 standards dictate that iFrames should always at least have *something* for the title attribute for accessibility purposes.

Using the source URL as the reference to provide a generic yet informational "Embedded content from [SITE]" title attribute if none is present.

Configuration is simple. Just enable the filter as you would normally for whichever desired text format you need this accessibility safety net to be enabled on.