Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
IE9 was dropped in 8.5.0 (see #2842298: [policy, no patch] Drop IE9 and IE10 support from Drupal 8.4.x).
responsive-image.html.twig
still contains a workaround for IE9.
Proposed resolution
Remove unnecessary workaround and save a few bytes of HTML sent to everyone using this module.
Comment | File | Size | Author |
---|---|---|---|
#7 | 3108071-7.patch | 2.73 KB | tstoeckler |
Comments
Comment #2
tstoecklerHere's a patch that changes the code in the
responsive_image
module. It applies in 9.0.x, 8.9.x and 8.8.x. I did not change the equivalent code in stable, as I am not sure what the current policy is on whether it is allowed to be modified and if so, in which branches.Comment #3
idebr CreditAttribution: idebr at iO commentedThe template in the stable theme should be updated as well: core/themes/stable/templates/field/responsive-image.html.twig
Edit: per the backwards compatibility policy, themes markup is allowed to change https://www.drupal.org/core/d8-bc-policy#themes
Comment #4
tstoecklerOK, fair enough. Thanks!
Comment #5
longwaveResponsiveImageFieldDisplayTest contains a test that will need updating:
Comment #7
tstoecklerGood catch, thanks!
Comment #9
longwaveLooks good. I did a search and found some other references to old IE versions that we can probably clean up now, but nothing else related to this particular one.
Comment #12
lauriiiTechnically templates in the Stable theme are not supposed to be changed according to https://www.drupal.org/core/d8-frontend-bc-policy#themes. However, since this is just removing code related to supporting IE9 which isn't supported anymore, it seems reasonable to make this change there. This only impacts users of IE9 and some overly strict test assertions.
Committed 7640205 and pushed to 9.0.x and 8.9.x. Thanks!