Dom\TokenList::supports

Returns whether the given token is supported

Description

public bool Dom\TokenList::supports(string $token)

Returns whether token is in the associated attribute's supported tokens.

Parameters

token
The token.

Return Values

Returns true on success or false on failure.

Errors/Exceptions

Throws a TypeError when the attribute does not define a supported tokens list.