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.
By gapple on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.1.x
Introduced in version:
9.1.0
Issue links:
Description:
The 'browsers'
property of library assets is deprecated in Drupal 9.1 and is removed from Drupal 10.
Internet Explorer up to version 9 supported Conditional Comments to control a document's markup according to browser version.
Internet Explorer 9 and 10 support was dropped from Drupal 8.4.x, and no other supported browsers support Conditional Comments.
Themes can still conditionally include assets for IE <= 9 by adding markup in the html.html.twig
template:
<css-placeholder token="{{ placeholder_token }}">
<!--[if lte IE 9]>
<link rel="stylesheet" type="text/css" href="/themes/custom/THEME_NAME/assets/css/ie9.css" media="screen" />
<script src="/themes/custom/THEME_NAME/assets/vendor/classList/classList.min.js"></script>
<![endif]-->
<js-placeholder token="{{ placeholder_token }}">
Impacts:
Module developers
Themers