From be6f7a25b39ba6ec40e40d1c0a51f545785c81f2 Mon Sep 17 00:00:00 2001 From: webchick Date: Sun, 16 Mar 2014 12:00:22 -0700 Subject: [PATCH] Issue #2211831 by mdrummond, jayeshanandani: Removal of alt attribute from [picture] tag. --- core/modules/responsive_image/responsive_image.module | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module index bc0b431a0c69..5113afcc88a3 100644 --- a/core/modules/responsive_image/responsive_image.module +++ b/core/modules/responsive_image/responsive_image.module @@ -200,6 +200,8 @@ function theme_responsive_image_formatter($variables) { * - width: The width of the image (if known). * - height: The height of the image (if known). * - alt: The alternative text for text-based browsers. + * - title: The title text is displayed when the image is hovered in some + * popular browsers. * - breakpoints: An array containing breakpoints. * * @ingroup themeable @@ -262,13 +264,7 @@ function theme_responsive_image($variables) { } if (!empty($sources)) { - $attributes = array(); - foreach (array('alt', 'title') as $key) { - if (isset($variables[$key])) { - $attributes[$key] = $variables[$key]; - } - } - $output[] = ''; + $output[] = ''; // Add source tags to the output. foreach ($sources as $source) {