CustomStateSet: clear() 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 clear() method of the CustomStateSet interface removes all elements from the CustomStateSet object.
Syntax
js
clear()
Parameters
None.
Return value
Undefined.
Specifications
| Specification |
|---|
| HTML> # custom-state-pseudo-class> |