package js.html
Available on jsThe
DOMTokenListinterface represents a set of space-separated tokens. Such a set is returned byElement.classList,HTMLLinkElement.relList,HTMLAnchorElement.relListorHTMLAreaElement.relList. It is indexed beginning with0as with JavaScriptArrayobjects.DOMTokenListis always case-sensitive.Documentation DOMTokenList by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
read only length:IntIs an integer representing the number of objects stored in the object.
value:Stringadd (tokens:Rest<String>):VoidThrows:
null |
DOMError |
|---|
contains (token:String):BoolThrows:
null |
DOMError |
|---|
item (index:Int):StringReturns an item in the list by its index (or undefined if the number is greater than or equal to the length of the list, prior to 7.0 returned null)
remove (tokens:Rest<String>):VoidThrows:
null |
DOMError |
|---|
toggle (token:String, ?force:Bool):BoolThrows:
null |
DOMError |
|---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DOMTokenList.html