ElementInternals.states

The states property of the ElementInternals interface

Syntax

let astates = ElementInternals.states;
// Remove this one if the property is read only.
ElementInternals.states = a;

Value

Examples

Fill in a simple example that nicely shows a typical usage of the API, then perhaps some more complex examples (see our guide on how to add code examples for more information).

This text should be replaced with a brief description of what the example demonstrates.

my code block

And/or include a list of links to useful code samples that live elsewhere:

  • x
  • y
  • z

Specifications

Specification
Custom State Pseudo Class
# dom-elementinternals-states

Browser compatibility

BCD tables only load in the browser