DOMTokenList class
DOMTokenList class
The DOMTokenList class represents a set of space-separated tokens. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive.
Inheritance: DOMTokenList →
DOMObject
The DOMTokenList type exposes the following members:
Properties
| Property | Description |
|---|---|
| length | Returns an ulong which represents the number of tokens stored in this list. |
| value | Gets or sets the value of a corresponding attribute. |
Indexer
| Name | Description |
|---|---|
| [index] |
Methods
| Method | Description |
|---|---|
| toggle | Removes the token from the list if it exists, or adds the token to the list if it doesn’t. |
| toggle | Removes the token from the list if it exists, or adds the token to the list if it doesn’t. |
| get_platform_type | This method is used to retrieve the ECMAScript object Type. |
| contains | Returns true if the list contains the given token, otherwise false. |
| add | Adds the specified token(s) to the list. |
| remove | Removes the specified token(s) from the list. |
| replace | Replaces an existing token with a new token. Does nothing if the first token doesn’t exist. |
| supports | Returns true if a given token is in the associated attribute’s supported tokens. |
See Also
- module
aspose.html.collections - class
DOMObject - class
DOMTokenList