Ember CLI addon that polyfills Element.closest() and Element.matches() for browsers lacking support (IE11 and lower). Version 0.0.2 is the latest release, last updated on npm in 2019. Based on jonathantneal's element-closest polyfill. It uses Ember CLI's targets feature to conditionally include the polyfill only when needed, reducing bundle size. Differentiators: automatic inclusion based on browser targets, supports nested addon usage, and also polyfills Element.matches().
Verified import paths — ran on the pinned version, not inferred.
Importing the module automatically applies the polyfill; there is no named export. Just import the package once, typically in app.js.
This is an Ember CLI addon; consumption is via 'ember install' or adding to package.json. No JS import is needed manually; the addon handles the polyfill.
After polyfill, Element.closest works per spec (one argument). No extra arguments supported.
Installs the addon and shows usage of Element.closest in an Ember component after polyfill is applied.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.