UNPKG

domtokenlist-shim

Version:

A super strict shim/polyfill for DOMTokenList

31 lines (23 loc) 1.18 kB
# DOMTokenList shim A super strict shim/polyfill for [DOMTokenList](http://dom.spec.whatwg.org/#interface-domtokenlist), classList and relList. Small, < 1 kB minified and gzipped (~ 2kB minified). ## Usage All you need to do is include the JavaScript file and everything will be ready to go. If native DOMTokenList support is detected, nothing will be done. ``` <script src="domtokenlist.min.js"></script> ``` ## Browser support * Android - 2.3+ * Edge - Current version and one version earlier * Google Chrome - Current version and one version earlier * Internet Explorer - 8+ * iOS - 6.1+ * Mozilla Firefox - Current version and one version earlier * Opera - Current version and one version earlier * Safari - 5.1+ ## License MIT license. See [LICENSE.md](LICENSE.md) for more information. ## Credits Developed by [Jonathan Wilsson](https://github.com/jwilsson) and [Bogdan Chadkin](https://github.com/TrySound). A big thanks to [BrowserStack](https://www.browserstack.com/) for sponsoring our test environment. <br><br> [<img src="https://cdn.rawgit.com/jwilsson/domtokenlist/master/browserstack-logo.svg" alt="BrowserStack" width="300">](https://www.browserstack.com/)