ValidityState
Interface
The DOM
ValidityState
interface represents the
validity states that an element can be in, with respect to constraint validation.
Fields
Code
final bool customError #
The element's custom validity message has been set to a non-empty string by calling the element's setCustomValidity() method.
final bool customError;
Code
final bool patternMismatch #
The value does not match the specified
pattern
.
final bool patternMismatch;
Code
final bool rangeOverflow #
The value is greater than the specified
max
.
final bool rangeOverflow;
Code
final bool rangeUnderflow #
The value is less than the specified
min
.
final bool rangeUnderflow;
Code
final bool stepMismatch #
The value does not fit the rules determined by
step
.
final bool stepMismatch;
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.
final bool tooLong;
Code
final bool typeMismatch #
The value is not in the required syntax (when
type
is
email
or
url
).
final bool typeMismatch;
Code
final bool valid #
No other constraint validation conditions are true.
final bool valid;
Code
final bool valueMissing #
The element has a
required
attribute, but no value.
final bool valueMissing;
This page includes content from the
Mozilla Foundation that is graciously
licensed under a
Creative Commons: Attribution-Sharealike license.
Mozilla has no other association with Dart or dartlang.org. We
encourage you to improve the web by
contributing to
The Mozilla Developer Network.