The DOMTokenList interface represents a set of space-separated
Such a set is returned by web.Element.classList
, html.HTMLLinkElement.relList
,
html.HTMLAreaElement.relList
, html.HTMLIframeElement.sandbox
,
html.HTMLOutputElement.htmlFor
. It is indexed beginning with
as with JavaScript web.Array
objects. DOMTokenList is always
The DOMTokenList interface represents a set of space-separated Such a set is returned by `web.Element.classList`, `html.HTMLLinkElement.relList`, `html.HTMLAreaElement.relList`, `html.HTMLIframeElement.sandbox`, `html.HTMLOutputElement.htmlFor`. It is indexed beginning with as with JavaScript `web.Array` objects. DOMTokenList is always
(add this & args)
Method.
The add() method of the dom.DOMTokenList
interface adds the
token to the list.
tokenList.add(token1[, token2[, ...]]);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add
Method. The add() method of the `dom.DOMTokenList` interface adds the token to the list. `tokenList.add(token1[, token2[, ...]]);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add`
(contains this token)
Method.
The contains() method of the dom.DOMTokenList
interface returns
web.Boolean
— true if the underlying list contains the given
otherwise false.
tokenList.contains(token);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/contains
Method. The contains() method of the `dom.DOMTokenList` interface returns `web.Boolean` — true if the underlying list contains the given otherwise false. `tokenList.contains(token);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/contains`
(entries this)
Method.
The DOMTokenList.entries() method returns an web.iterator
allowing
to go through all key/value pairs contained in this object. The
are dom.DOMString
objects, each representing a single token.
tokenList.entries();
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/entries
Method. The DOMTokenList.entries() method returns an `web.iterator` allowing to go through all key/value pairs contained in this object. The are `dom.DOMString` objects, each representing a single token. `tokenList.entries();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/entries`
(for-each this & args)
Method.
The forEach() method of the dom.DOMTokenList
interface calls
callback given in parameter once for each value pair in the list,
insertion order.
tokenList.forEach(callback); tokenList.forEach(callback, argument);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/forEach
Method. The forEach() method of the `dom.DOMTokenList` interface calls callback given in parameter once for each value pair in the list, insertion order. `tokenList.forEach(callback); tokenList.forEach(callback, argument);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/forEach`
(item this index)
Method.
The item() method of the dom.DOMTokenList
interface returns
item in the list by its index.
tokenList.item(index);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/item
Method. The item() method of the `dom.DOMTokenList` interface returns item in the list by its index. `tokenList.item(index);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/item`
(keys this)
Method.
The keys() method of the dom.DOMTokenList
interface returns
web.iterator
allowing to go through all keys contained in this
The keys are of type unsigned integer.
tokenList.keys();
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/keys
Method. The keys() method of the `dom.DOMTokenList` interface returns `web.iterator` allowing to go through all keys contained in this The keys are of type unsigned integer. `tokenList.keys();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/keys`
(length this)
Property.
The length read-only property of the dom.DOMTokenList
interface
an integer representing the number of objects stored in the object.
tokenList.length;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/length
Property. The length read-only property of the `dom.DOMTokenList` interface an integer representing the number of objects stored in the object. `tokenList.length;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/length`
(remove this & args)
Method.
The remove() method of the dom.DOMTokenList
interface removes
specified tokens from the list.
tokenList.remove(token1[, token2[, ...]]);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove
Method. The remove() method of the `dom.DOMTokenList` interface removes specified tokens from the list. `tokenList.remove(token1[, token2[, ...]]);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove`
(replace this old-token new-token)
Method.
The replace() method of the dom.DOMTokenList
interface replaces
existing token with a new token.
tokenList.replace(oldToken,newToken);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/replace
Method. The replace() method of the `dom.DOMTokenList` interface replaces existing token with a new token. `tokenList.replace(oldToken,newToken);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/replace`
(set-length! this val)
Property.
The length read-only property of the dom.DOMTokenList
interface
an integer representing the number of objects stored in the object.
tokenList.length;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/length
Property. The length read-only property of the `dom.DOMTokenList` interface an integer representing the number of objects stored in the object. `tokenList.length;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/length`
(supports this token)
Method.
The supports() method of the dom.DOMTokenList
interface returns
if a given token is in the associated attribute's supported tokens.
method is intended to support feature detection.
var boolean = element.supports(token)
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/supports
Method. The supports() method of the `dom.DOMTokenList` interface returns if a given token is in the associated attribute's supported tokens. method is intended to support feature detection. `var boolean = element.supports(token)` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/supports`
(toggle this token force)
Method.
The toggle() method of the dom.DOMTokenList
interface removes
given token from the list and returns false. If token doesn't
it's added and the function returns true.
tokenList.toggle(token, force);
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle
Method. The toggle() method of the `dom.DOMTokenList` interface removes given token from the list and returns false. If token doesn't it's added and the function returns true. `tokenList.toggle(token, force);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle`
(value this)
Method.
The value property of the dom.DOMTokenList
interface returns
value of the list as a dom.DOMString
, or clears and sets the
to the given value.
tokenList.value;
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/value
Method. The value property of the `dom.DOMTokenList` interface returns value of the list as a `dom.DOMString`, or clears and sets the to the given value. `tokenList.value;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/value`
(values this)
Method.
The values() method of the dom.DOMTokenList
interface returns
web.iterator
allowing developers to go through all values contained
the DOMTokenList. The individual values are dom.DOMString
objects.
tokenList.values();
See also: https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/values
Method. The values() method of the `dom.DOMTokenList` interface returns `web.iterator` allowing developers to go through all values contained the DOMTokenList. The individual values are `dom.DOMString` objects. `tokenList.values();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/values`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close