CustomStateSet: keys() method
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since May 2024.
The keys() method of the CustomStateSet interface is an alias for CustomStateSet.values.
Syntax
js
keys()
Parameters
None.
Return value
A new iterator object containing the values for each element in the given CustomStateSet, in insertion order.
Specifications
| Specification |
|---|
| HTML> # custom-state-pseudo-class> |