Node.prototype.getRootNode
polyfill
Polyfill for the new DOM method Node.prototype.getRootNode
as defined
by the DOM specification
Install
npm install --save get-root-node-polyfill
Usage
// Implement the method if it does not already exist:;aDiv; // options are optional, defaults to composed = false. // Get the method without touching Node.prototypeconst getRootNode = ;getRootNode; // Check if the method is available on Node.prototype.const isImplemented = ;; // true if the method is available