1.2.2 • Published 7 years ago

dom-polyfills v1.2.2

Weekly downloads
19
License
ISC
Repository
github
Last release
7 years ago

DOM polyfills

  • fetch
  • URLSearchParams
  • element#classList
  • element#dataset
  • element#matches
  • element#closest

Must be included after es6-shim (it uses Promises and Map)

usage:

if (!Array.hasOwnProperty('from'))
	addScript('https://unpkg.com/es6-shim@latest/es6-shim.min.js'); // or use your own server
if (!window.hasOwnProperty('URLSearchParams'))
	addScript('https://unpkg.com/dom-polyfills@latest/polyfills.js');


function addScript(src) {
	var script = document.createElement('script');
	script.src = src;
	document.body.appendChild(script);
}

todo tests

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago