validity

open override val validity: ValidityState(source)

The validity read-only property of the HTMLOutputElement interface returns a ValidityState object that represents the validity states this element is in. Although elements are never candidates for constraint validation, the validity state may still be invalid if a custom validity message has been set.

MDN Reference