(PHP 8 >= 8.4.0)
Dom\TokenList::supports — Returns whether the given token is supported
$token
Returns whether token is in the associated attribute's supported tokens.
token
Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.
true
false
Throws a TypeError when the attribute does not define a supported tokens list.