UNPKG

classlist-polyfill

Version:

Cross-browser JavaScript shim that fully implements element.classList (referenced on MDN)

36 lines (19 loc) 703 B
# classlist-polyfill Polyfill for [`element.classList`][docs]. This is a published fork of [classList.js][]. [classList.js]:https://github.com/eligrey/classList.js [docs]: https://developer.mozilla.org/en/DOM/element.classList ## Installation Download using [NPM](https://www.npmjs.com/package/classlist-polyfill): ```shell npm install classlist-polyfill ``` Download using [Bower](http://bower.io/): ```shell bower install classlist-polyfill ``` ## What is the purpose of this repo? The upstream maintainer has decided [not to publish][comment]. [comment]: https://github.com/eligrey/classList.js/pull/46#issuecomment-189782600 ## Contributing Preferably all changes are made upstream.