Definition
DOM Standard defines DOMTokenList
[Exposed=Window]
interface DOMTokenList {
readonly attribute unsigned long length;
getter DOMString? item(unsigned long index);
boolean contains(DOMString token);
[CEReactions] undefined add(DOMString... tokens);
[CEReactions] undefined remove(DOMString... tokens);
[CEReactions] boolean toggle(DOMString token, optional boolean force);
[CEReactions] boolean replace(DOMString token, DOMString newToken);
boolean supports(DOMString token);
[CEReactions] stringifier attribute DOMString value;
iterable<DOMString>;
};
Methods and attributes that return objects implementing DOMTokenList
Element.classList
Element.part
HTMLLinkElement.relList
HTMLLinkElement.sizes
HTMLLinkElement.blocking
HTMLStyleElement.blocking
HTMLAnchorElement.relList
HTMLIFrameElement.sandbox
HTMLAreaElement.relList
HTMLFormElement.relList
HTMLOutputElement.htmlFor
HTMLScriptElement.blocking
HTMLFencedFrameElement.sandbox
Element.classList
Element.part
SVGAElement.relList
Referring IDL interfaces/dictionaries
Referring specifications
- HTML Standard refers to
DOMTokenList
- Fenced Frame refers to
DOMTokenList
- CSS Shadow Parts refers to
DOMTokenList
- Scalable Vector Graphics (SVG) 2 refers to
DOMTokenList