Articles: javascript

Using DOMTokenList

DOMTokenList is a built-in DOM interface that represents a set of string tokens. If you are familiar with classList, you are already familiar with it. In a recent project, I wanted to make a custom element property as a DOMTokenList, here’s what I learned.

Continue reading