class js.html.ValidityState
Available on jsThe DOM ValidityState interface represents the validity states that an element can be in, with respect to constraint validation.
Documentation for this class was provided by MDN.
Instance Fields
var customError:Bool
The element's custom validity message has been set to a non-empty string by calling the element's setCustomValidity() method.
var tooLong:Bool
The value exceeds the specified maxlength for HTMLInputElement or HTMLTextAreaElement objects.
Note: This will never be
true in Gecko, because elements' values are prevented from being longer than maxlength.