Constraint validation API
Methods that validate form controls before submission, such as checkValidity()
, reportValidity()
and setCustomValidity()
.
Status
Baseline Widely Available (since 2021-06-11)
MDN documentation
Specifications
- HTML (#the-constraint-validation-api), from HTML Workstream (WHATWG).
Browser support (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
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist