reportValidity method

bool reportValidity()

The reportValidity() method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it.

If reportValidity returns false then a cancelable invalid event is fired on the element.

This method behaves in a similar way to ElementInternals.checkValidity, however it additionally sends the value of ElementInternals.validationMessage to the user agent for display.

Implementation

external bool reportValidity();