cross-class-list

Cross-browser full element.classList implementation, forked from github.com/eligrey/classList.js

Usage no npm install needed!

<script type="module">
  import crossClassList from 'https://cdn.skypack.dev/cross-class-list';
</script>

README

Build Status

Cross-browser Class List

Originally forked from https://github.com/eligrey/classList.js with the differences that it contains further bugfixes and comes with a package.json for nodejs/iojs projects:

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.

This works in every browser except IE 7 or earlier.

Install

npm i -S cross-class-list