1.1.0 • Published 5 years ago

element-polyfill v1.1.0

Weekly downloads
50
License
MIT
Repository
gitlab
Last release
5 years ago

This package provides polyfills for ParentNode, ChildNode and NodeList methods that are unavailable in older browsers (notably IE 11).

The polyfills are taken from the https://developer.mozilla.org/ pages. The majority are sourced from https://github.com/jserz.

Polyfills

The following methods are polyfilled:

Installation

npm install -S element-polyfill

Usage

Simply require the package somewhere close to the beginning of your code.

// require all polyfills
require('element-polyfill');

// require some polyfills
require('element-polyfill/polyfills/element.child-node.after.js')
require('element-polyfill/polyfills/element.parent-node.append.js')
1.1.0

5 years ago