docs
Loading...
Searching...
No Matches
ULDOMValidityState

#include <Ultralight/CAPI/CAPI_DOMElement.h>

Overview

The ways a form control can fail its constraints (ValidityState).

See also
ulDOMElementGetValidity()

Public Attributes

bool value_missing
 A required control has no value.
bool type_mismatch
 The value doesn't fit the input type (eg, a malformed email).
bool pattern_mismatch
 The value doesn't match the pattern attribute.
bool too_long
 The value is longer than maxlength (after a user edit).
bool too_short
 The value is shorter than minlength (after a user edit).
bool range_underflow
 The value is less than min.
bool range_overflow
 The value is greater than max.
bool step_mismatch
 The value doesn't fit the step attribute.
bool bad_input
 The user entered something the control can't convert to a value.
bool custom_error
 A custom error is set (see ulDOMElementSetCustomValidity()).
bool valid
 None of the above are true.

Member Data Documentation

◆ bad_input

bool bad_input

The user entered something the control can't convert to a value.

◆ custom_error

bool custom_error

A custom error is set (see ulDOMElementSetCustomValidity()).

◆ pattern_mismatch

bool pattern_mismatch

The value doesn't match the pattern attribute.

◆ range_overflow

bool range_overflow

The value is greater than max.

◆ range_underflow

bool range_underflow

The value is less than min.

◆ step_mismatch

bool step_mismatch

The value doesn't fit the step attribute.

◆ too_long

bool too_long

The value is longer than maxlength (after a user edit).

◆ too_short

bool too_short

The value is shorter than minlength (after a user edit).

◆ type_mismatch

bool type_mismatch

The value doesn't fit the input type (eg, a malformed email).

◆ valid

bool valid

None of the above are true.

◆ value_missing

bool value_missing

A required control has no value.


The documentation for this struct was generated from the following file: