Constraint validation API
Widely available since 2021-06-11
Methods that validate form controls before submission, such as checkValidity()
, reportValidity()
and setCustomValidity()
.
Learn more
No MDN documentation found. You can search for the feature on MDN. If you believe that MDN has no documentation about this feature, you can open an issue on MDN's GitHub repository.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