
## contains {#str}

Returns true if the list contains the given token, otherwise false.


### Returns 


A Boolean, which is true if the calling list contains token, otherwise false.


```python
def contains(self, token):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| token | str | The token to locate in the list. |



### See Also
* module [`aspose.html.collections`](../../)
* class [`DOMTokenList`](/html/python-net/aspose.html.collections/domtokenlist)
