Commit be6f7a25 authored by webchick's avatar webchick

Issue #2211831 by mdrummond, jayeshanandani: Removal of alt attribute from [picture] tag.

parent 682c5504
......@@ -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[] = '<picture' . new Attribute($attributes) . '>';
$output[] = '<picture>';
// Add source tags to the output.
foreach ($sources as $source) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment