diff --git a/core/modules/responsive_image/templates/responsive-image.html.twig b/core/modules/responsive_image/templates/responsive-image.html.twig index 99fca6b8cfc8..986d408f8c7b 100644 --- a/core/modules/responsive_image/templates/responsive-image.html.twig +++ b/core/modules/responsive_image/templates/responsive-image.html.twig @@ -20,15 +20,9 @@ {% else %} {% if sources %} - {# - Internet Explorer 9 doesn't recognise source elements that are wrapped in - picture tags. See http://scottjehl.github.io/picturefill/#ie9 - #} - {% for source_attributes in sources %} {% endfor %} - {% endif %} {# The controlling image, with the fallback image in srcset. #} {{ img_element }} diff --git a/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php b/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php index 9b805d6e625f..2e94a1da9bd5 100644 --- a/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php +++ b/core/modules/responsive_image/tests/src/Functional/ResponsiveImageFieldDisplayTest.php @@ -287,9 +287,6 @@ class ResponsiveImageFieldDisplayTest extends ImageFieldTestBase { $this->drupalGet('node/' . $nid); if (!$empty_styles) { $this->assertRaw('/styles/medium/'); - // Make sure the IE9 workaround is present. - $this->assertRaw(''); - $this->assertRaw(''); // Assert the empty image is present. $this->assertRaw('data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='); $thumbnail_style = ImageStyle::load('thumbnail'); diff --git a/core/themes/stable/templates/field/responsive-image.html.twig b/core/themes/stable/templates/field/responsive-image.html.twig index ae77ffb1777b..9fe132a43a42 100644 --- a/core/themes/stable/templates/field/responsive-image.html.twig +++ b/core/themes/stable/templates/field/responsive-image.html.twig @@ -18,15 +18,9 @@ {% else %} {% if sources %} - {# - Internet Explorer 9 doesn't recognise source elements that are wrapped in - picture tags. See http://scottjehl.github.io/picturefill/#ie9 - #} - {% for source_attributes in sources %} {% endfor %} - {% endif %} {# The controlling image, with the fallback image in srcset. #} {{ img_element }}