DOMTokenList interface represents a set of space-separated tokens. Such a set is returned by
HTMLAreaElement.relList. It is indexed beginning with
DOMTokenList is always case-sensitive.
This interface doesn't inherit any property.
- Is an
integerrepresenting the number of objects stored in the object.
This interface doesn't inherit any method.
- 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)
trueif the underlying string contains token, otherwise
- Adds token to the underlying string
- Removes token from the underlying string
- Removes token from string and returns false. If token doesn't exist it's added and the function returns true