Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shim element.closest() #317

Closed
binarykitchen opened this issue Jul 11, 2017 · 6 comments
Closed

Shim element.closest() #317

binarykitchen opened this issue Jul 11, 2017 · 6 comments

Comments

@binarykitchen
Copy link

Looks like it's not supported on core-js yet? No hits. This one:
http://caniuse.com/#feat=element-closest

That package could be helpful
https://github.com/jonathantneal/closest

@zloirock
Copy link
Owner

Thanks for the proposal, but at this moment DOM polyfills are not in the core-js scope.

@binarykitchen
Copy link
Author

why not?

@AlexWayfer
Copy link
Contributor

"Iterable DOM collections" are in the core-js scrope, but "DOM elements" are not 😑

@zloirock
Copy link
Owner

zloirock commented Dec 7, 2017

@AlexWayfer iterable DOM collections related ECMAScript iterable protocol and required for correct work of many core-js and babel features like for-of loops, spread, collection constructors, etc.

@zloirock
Copy link
Owner

zloirock commented Dec 7, 2017

Theoretically, DOM polyfills could be added to core-js in the future, but definitely not soon. I haven't enough time even for that and have much more priority tasks.

@AlexWayfer
Copy link
Contributor

They can be added to a separate namespace, doesn't required by general namespace requiring. But it's your choise, just an idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants