haXe API Documentation
Back | Index
extern class js.html.DOMTokenList
Available in js
This type represents a set of space-separated tokens. Commonly returned by HTMLElement.classList , HTMLLinkElement.relList, HTMLAnchorElement.relList or HTMLAreaElement.relList. It is indexed beginning with 0 as with JavaScript arrays. DOMTokenList is always case-sensitive.

Documentation for this class was provided by MDN.
var length(default,null) : Int
function add(tokens : String) : Void
function contains(token : String) : Bool
function item(index : Int) : String
function remove(tokens : String) : Void
function toString() : String
function toggle(token : String, ?force : Bool) : Bool
Back | Index