Constraint validation API
Widely available
Methods that validate form controls before submission, such as checkValidity()
, reportValidity()
and setCustomValidity()
.
To learn more, see
Constraint validation at MDN.
Compatibility (view on caniuse.com)
- Chrome 40 Released on 2015-01-21
- Chrome Android 40 Released on 2015-01-21
- Edge 18 Released on 2018-10-02
- Firefox 51 Released on 2017-01-24
- Firefox for Android 64 Released on 2018-12-11
- Safari 10.1 Released on 2017-03-27
- Safari on iOS 10.3 Released on 2017-03-27
Specifications
- HTML Standard (#the-constraint-validation-api), from HTML Workstream (WHATWG).