Skip to content

Remove element-closest dependency #11250

@jna4k

Description

@jna4k

Description

We can remove the element-closest dependency as it is no longer needed. The dependency was added as a polyfill for IE11 back in 2018 see #3147

The function has been standard for most other browsers since 2015 and 2017 see
https://developer.mozilla.org/en-US/docs/Web/API/Element/closest

If we inspect what the actual dependency does, then we can see it also has a pollyfill for the element#matches function. This function has been support by modern browsers for even longer. See https://developer.mozilla.org/en-US/docs/Web/API/Element/matches

What kind of improvement you want to add? (check one with "x", remove the others)

  • Minor changes to existing features
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Other useful information

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions