zloirock / core-js

Standard Library
MIT License
24.62k stars 1.66k forks source link

Why core-js didn't provide polyfill for "getRootNode" #1045

Closed gaoyuan1223m closed 2 years ago

gaoyuan1223m commented 2 years ago

I am sorry I didn't find the polyfill for "getRootNode" from "Node.prototype", which is not available below iOS10.2

Could you please provide me some ways to solve this?

image

zloirock commented 2 years ago

At this moment, core-js provide polyfills only for ECMAScript and closely related cross-platform web standards, so getRootNode is out of core-js scope. Maybe, in the future, core-js will be extended to such standards, but not soon.

gaoyuan1223m commented 2 years ago

At this moment, core-js provide polyfills only for ECMAScript and closely related cross-platform web standards, so getRootNode is out of core-js scope. Maybe, in the future, core-js will be extended to such standards, but not soon.

Understood! Thanks, Zloirock

oyar99 commented 5 months ago

is this still something we don't want to support in core-js?

zloirock commented 5 months ago

At this moment not. Maybe later, after adding web standards that are closer to ES.