reportValidity

open override fun reportValidity(): Boolean(source)

Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user.

MDN Reference