ValidityState
interface represents the validity states that an element can be in, with respect to constraint validation.The value does not match the specified
pattern
.
The value is greater than the specified
max
.
The value is less than the specified
min
.
The value does not fit the rules determined by
step
.
The value exceeds the specified maxlength for HTMLInputElement or HTMLTextAreaElement objects.
true
in Gecko, because elements' values are prevented from being longer than maxlength.The value is not in the required syntax (when
type
is email
or url
).
The element has a
required
attribute, but no value.