@JsType(isNative=true, name="DOMTokenList", namespace="<global>") public class DOMTokenList extends Object
Constructor and Description |
---|
DOMTokenList() |
Modifier and Type | Method and Description |
---|---|
void |
add(String obj)
Adds token to the underlying string
|
Boolean |
contains(String obj)
Returns true if the underlying string contains token, otherwise false
|
int |
getLength()
DOMTokenList.length Read only Is an integer representing the number of
objects stored in the object.
|
String |
item(int index)
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 Gecko 7.0
returned null)
|
void |
remove(String obj)
Removes token from the underlying string
|
Boolean |
toggle(String obj)
Removes token from string and returns false.
|
@JsProperty public int getLength()
public String item(int index)
index
- public Boolean contains(String obj)
obj
- public void add(String obj)
obj
- public void remove(String obj)
obj
- Copyright © 2018 Xalys. All rights reserved.