Solved

Match the Following Validation States to Their Respective Descriptions

Question 33

Matching

Match the following validation states to their respective descriptions.

Premises:
The element contains data whose character length exceeds the value of the length attribute.
The element contains valid data, satisfying all constraints.
The field element, element , contains data that the browser is unable to convert.
The element contains data that does not match the character pattern specified in the pattern attribute.
A custom validation message has been set to a nonempty text string using the setCustomValidity() metho d.
The element contains data that does not match the data type specified by the type attribute.
Responses:
element.validity.patternMismatch
element.validity.customError
element.validity.typeMismatch
element.validity.valid
element.validity.tooLong
element.validity.badInput

Correct Answer:

The element contains data whose character length exceeds the value of the length attribute.
The element contains valid data, satisfying all constraints.
The field element, element , contains data that the browser is unable to convert.
The element contains data that does not match the character pattern specified in the pattern attribute.
A custom validation message has been set to a nonempty text string using the setCustomValidity() metho d.
The element contains data that does not match the data type specified by the type attribute.
Related Questions