4 ms·
For what it's worth, it already is. https://developer.mozilla.org/en-US/docs/Web/API/Element/classList https://developer.mozilla.org/en-US/docs/Web/API/Element
by madeofpalk 9y ago
For what it's worth, it already is.
https://developer.mozilla.org/en-US/docs/Web/API/Element/classList https://developer.mozilla.org/en-US/docs/Web/API/Element/cla...
Builtin functions for adding, removing, toggling and querying classes on elements.