The HTML Constraint Validation API provides default error messages. For example, when the user enters an invalid pattern, the message below is automatically provided:
Please match the requested format.
These messages are useful because they're translated into the locale language of the user.
Can these default validation messages be accessed using client side JavaScript?
Sources:
- https://developer.mozilla.org/en-US/docs/Web/HTML/Constraint_validation
- https://developer.mozilla.org/en-US/docs/Web/API/ValidityState
I've read the sources listed in my original post, and cannot find a way to access these messages.