classList + polyfill error
See original GitHub issueAfter 44e875c79059322821916ebaefaa43cd2d2c9c9a
i got errors in elem.classList.add(classes[i]);
if i have already polifylled array.
See example (see console)
https://jsfiddle.net/Illiax/ad3quksn/9/
I don’t know if i this is intended or not.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Angular4.x Module not found: Error: Can't resolve 'classlist.js'
// Run `npm install --save classlist.js`. The same goes for the web-animations-js polyfill if you haven't done so already.
Read more >Element.classList polyfill not working · Issue #1454 · mdn/sprints
ClassList polyfill is throwing the following error in IE 11. Error: 'ele' is undefined. Polyfill is taken from below link
Read more >classlist-polyfill - npm
Cross-browser JavaScript shim that fully implements element.classList (referenced on MDN). Latest version: 1.2.0, last published: 6 years ...
Read more >Can't resolve 'classless.js' error in existing projects
Dear Radzen Team, I get a compile error in all my “older” projects which I started in a 1.x version of Radzen. The...
Read more >HTML DOM Element classList Property - W3Schools
The classList property returns the CSS classnames of an element. ... The classList property is read-only, but you can use the methods listed...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, so this issue appears to be user error, as seen here, you shouldn’t be doing what you’re doing: http://stackoverflow.com/a/948379/1375989
Fix:
And thanks for also giving me advice 😃