The validity
read-only property of the
HTMLObjectElement
interface returns a ValidityState
with
the validity states that this element is in.
Syntax
var ValidityState = HTMLObjectElement.validity;
Value
A ValidityState
object.
Specifications
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'validity' in that specification. |
Living Standard | Initial definition. |
Browser compatibility
BCD tables only load in the browser