checkValidity

open override fun checkValidity(): Boolean(source)

The checkValidity() method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.

MDN Reference