[wp-trac] [WordPress Trac] #52851: Update the `element-closest` polyfill

WordPress Trac noreply at wordpress.org
Tue Apr 20 18:35:06 UTC 2021


#52851: Update the `element-closest` polyfill
-------------------------------------+---------------------
 Reporter:  desrosj                  |       Owner:  (none)
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  5.8
Component:  External Libraries       |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------

Comment (by desrosj):

 [attachment:"52851.2.diff"] is just a refresh to apply to `trunk` cleanly.

 I was looking at this again today. It seems that the name of the file in
 the package has changed. Previously, the package contained an `element-
 closest.js` file that was
 [https://core.trac.wordpress.org/browser/branches/5.7/tools/webpack/packages.js#L78
 used in the Webpack build process].

 In the latest release, it seems that `browser.js` is the result of a new
 build process and is meant to replace this file. However, the file is also
 minified. Core currently has an expanded and minified version of `wp-
 polyfill-element-closest.js`, so this will need to be addressed in the
 build process.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52851#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list