Comments (4)
https://developer.mozilla.org/en-US/docs/Web/API/element.classList#wrapper as linked to in the readme.
Note: This shim does not work in Internet Explorer versions less than 8.
Pretty much every other browser will work since very early browser versions.
from classlist.js.
Thanks @eligrey - the reason I asked is because the version of the shim provided by mozilla appears to be older (at least judging from the date in the commented section), and it wasn't clear if their docs were up to date. That's why having the info in your repo as the primary source of truth would be ideal.
from classlist.js.
It's a wiki. If the script is out of date, anyone can update it.
from classlist.js.
True - the problem is, if the wiki is a couple of years old, one can update the script but wouldn't know if IE6/7 support had been added in the interval time without digging through the commits.
from classlist.js.
Related Issues (20)
- ReferenceError: self is not defined HOT 1
- DOMException is undefined in IE8 HOT 3
- Object.defineProperty not working with older Safari Versions
- IE11/10 multiple argument remove and add not working due to SVG test HOT 16
- testElement.classList.toggle is not a function HOT 1
- tag the repo? HOT 4
- Maintenance Woes HOT 11
- Roadmap HOT 6
- No default export
- classList.js does not work if loaded after DOMContentLoaded HOT 1
- replace method is missing
- add() function with no arguments HOT 3
- The contains method have inverted condition HOT 2
- SCRIPT5009: 'DOMTokenList' is undefined HOT 7
- CDN link not working HOT 4
- ClassList not working in SVG use tag in IE11 HOT 4
- Not able to install via npm HOT 7
- Licensing HOT 3
- toggle fails in IE11 when force argument is set as undefined
- The specification of `DOMTokenList.prototype.contains` should return a boolean
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from classlist.js.