Haxe API Documentation
Back | Index
extern class js.html.ValidityState
Available in js
The 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.
var customError(default,null) : Bool
The element's custom validity message has been set to a non-empty string by calling the element's setCustomValidity() method.
var patternMismatch(default,null) : Bool

The value does not match the specified

pattern .

var rangeOverflow(default,null) : Bool

The value is greater than the specified

max .

var rangeUnderflow(default,null) : Bool

The value is less than the specified

min .

var stepMismatch(default,null) : Bool

The value does not fit the rules determined by

step .

var tooLong(default,null) : 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.
var typeMismatch(default,null) : Bool

The value is not in the required syntax (when

type is email or url).

var valid(default,null) : Bool
No other constraint validation conditions are true.
var valueMissing(default,null) : Bool

The element has a

required attribute, but no value.

Back | Index