package js.html
Available on jsThe
DOMTokenList
interface represents a set of space-separated tokens. Such a set is returned byElement.classList
,HTMLLinkElement.relList
,HTMLAnchorElement.relList
orHTMLAreaElement.relList
. It is indexed beginning with0
as with JavaScriptArray
objects.DOMTokenList
is always case-sensitive.Documentation DOMTokenList by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
read only length:Int
Is an integer
representing the number of objects stored in the object.
value:String
add (tokens:Rest<String>):Void
Throws:
null |
DOMError |
---|
contains (token:String):Bool
Throws:
null |
DOMError |
---|
item (index:Int):String
Returns 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>):Void
Throws:
null |
DOMError |
---|
toggle (token:String, ?force:Bool):Bool
Throws:
null |
DOMError |
---|
© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DOMTokenList.html