supports

The supports JS DOMTokenList returns true if token is in the associated attribute’s supported tokens. Returns false otherwise.

Throws a TypeError if the associated attribute has no supported tokens defined.

Syntax

tokenlist.supports(token)

Parameters

token

A string.

Examples

1 · false

2 · true

add

contains

item

length

remove

replace

toggle

value

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu