|
1 |
| -classList.js is a cross-browser JavaScript shim that fully implements `element.classList`. Refer to [the MDN page on `element.classList`][1] for more information. |
| 1 | +# classlist-polyfill |
2 | 2 |
|
3 |
| -This works in every browser except IE 7 or earlier. |
| 3 | +Polyfill for [`element.classList`][docs]. |
4 | 4 |
|
5 |
| -An older version is hosted at public CDNs, allowing you to use this already small file at nearly zero size overhead. Use one of these URLs: |
| 5 | +This is a published fork of [classList.js][]. |
6 | 6 |
|
7 |
| - - [//cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js](//cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js) |
8 |
| - - [//cdn.jsdelivr.net/classlist/2014.01.31/classList.min.js](//cdn.jsdelivr.net/classlist/2014.01.31/classList.min.js) |
| 7 | +[classList.js]:https://github.com/eligrey/classList.js |
| 8 | +[docs]: https://developer.mozilla.org/en/DOM/element.classList |
9 | 9 |
|
10 |
| -If you would like other versions (such as the current one) hosted there, follow the instructions at |
11 |
| -https://github.com/jsdelivr/jsdelivr |
12 |
| -and |
13 |
| -https://github.com/cdnjs/cdnjs |
14 |
| -to prepare a pull request. |
15 | 10 |
|
16 |
| - |
| 11 | +## Installation |
17 | 12 |
|
18 |
| - [1]: https://developer.mozilla.org/en/DOM/element.classList "MDN / DOM / element.classList" |
| 13 | +Download using [NPM](https://www.npmjs.com/package/classlist-polyfill): |
| 14 | + |
| 15 | +```shell |
| 16 | +npm install classlist-polyfill |
| 17 | +``` |
| 18 | + |
| 19 | +Download using [Bower](http://bower.io/): |
| 20 | + |
| 21 | +```shell |
| 22 | +bower install classlist-polyfill |
| 23 | +``` |
| 24 | + |
| 25 | + |
| 26 | +## What is the purpose of this repo? |
| 27 | + |
| 28 | +The upstream maintainer has decided [not to publish][comment]. |
| 29 | + |
| 30 | +[comment]: https://github.com/eligrey/classList.js/pull/46#issuecomment-189782600 |
| 31 | + |
| 32 | + |
| 33 | +## Contributing |
| 34 | + |
| 35 | +Preferably all changes are made upstream. |
0 commit comments