element-polyfill

1.1.0 • Public • Published

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')

Readme

Keywords

none

Package Sidebar

Install

npm i element-polyfill

Weekly Downloads

4,193

Version

1.1.0

License

MIT

Unpacked Size

8.92 kB

Total Files

14

Last publish

Collaborators

  • ollybollix