Returns the ValidityState object for internals's target element.
ReadonlywillValidate
willValidate:boolean
Returns true if internals's target element will be validated when the form is submitted; false otherwise.
Methods
checkValidity
checkValidity(): boolean
Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case.
Returns boolean
reportValidity
reportValidity(): boolean
Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user.
Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called.
Returns the form owner of internals's target element.