Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Oct 2019 at 21:44 UTC
Updated:
29 Oct 2019 at 21:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
zrpnrThis patch marks html5shiv deprecated and removes it from core. The deprecation message points to the draft change record.
It's similar to the work in #1993334: Add HTML5shiv to Stable and Classy only but without adding anything to core themes, as well as some changes to the
AjaxPageStateTest. I chose different libraries to test for sincedomreadyshould be removed in #3086375: Deprecate domready and remove usages in core.The assertions there are also updated to not use deprecated methods and I moved the non-functional second arguments to inline comments.
Comment #4
zrpnrI added a contrib module to replace this library, on recommendation from @xjm and @lauriii
https://www.drupal.org/project/html5shiv
This adds the exact library that is removed from core in this patch for any sites that still need it.
Comment #5
johnwebdev commentedAnything blocking there to be released as stable?
It would be nice to see the change record updated, pointing to the contrib and some simple instructions what you need to do.
Code looks good!
Comment #6
lauriiiThe module looks good. Let's release a stable version of that 👏
Comment #7
zrpnrI just was hoping to have some other eyes on it before I made a release. Thanks for reviewing!
I'll update the CR to point to the contrib module as well.
After talking with @lauriii again here is a new patch which leaves html5shiv in place in core but simply marks the library deprecated and suppresses the warning. Then it can be more safely removed in 9.
Comment #8
lauriiiReviewed code in the module and tested it manually. There are some very unlikely edge cases where the module might not work as expected, most notably if someone is not rendering the html render element but they depended on the core/html5shiv library, they wouldn't get the polyfill at all. However, given how unlikely that would be, I'd just keep the code as it is.
The patch looks good as well and will remove the usages of the deprecated library in Drupal 9. 🚢
Comment #9
xjmComment #13
xjmCommitted and pushed to 9.0.x, 8.9.x, and 8.8.x. Thanks!
Comment #14
xjmPublished the CR.