Web platform features explorer

Constraint validation API

Widely available since 2021-06-11
Tags: api Groups: HTML > Forms

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.

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