API for better control over form field validation. Includes support for checkValidity()
, setCustomValidity()
, reportValidity()
and validation states.
Spec | https://html.spec.whatwg.org/dev/form-control-infrastructure.html#the-constraint-validation-api |
---|---|
Status | WHATWG Living Standard |
IE | Edge | Firefox | Chrome | Safari | Opera |
---|---|---|---|---|---|
73 | |||||
65 | 72 | ||||
64 | 71 | TP | |||
11 (1,2,3) | 18 | 63 | 70 | 12 | 56 |
10 (1,2,3) | 17 | 62 | 69 | 11.1 | 55 |
9 | 16 (1,2) | 61 | 68 | 11 | 54 |
8 | 15 (1,2) | 60 | 67 | 10.1 | 53 |
Show all | |||||
7 | 14 (1,2) | 59 | 66 | 10 | 52 |
6 | 13 (1,2,3) | 58 | 65 | 9.1 (1,2) | 51 |
5.5 | 12 (1,2,3) | 57 | 64 | 9 (1,2) | 50 |
56 | 63 | 8 (1,2) | 49 | ||
55 | 62 | 7.1 (1,2) | 48 | ||
54 | 61 | 7 (1,2,3) | 47 | ||
53 | 60 | 6.1 (1,2,3) | 46 | ||
52 | 59 | 6 (1,2,3) | 45 | ||
51 | 58 | 5.1 (1,2,3) | 44 | ||
50 (2) | 57 | 5 | 43 | ||
49 (2) | 56 | 4 | 42 | ||
48 (1,2) | 55 | 3.2 | 41 | ||
47 (1,2) | 54 | 3.1 | 40 | ||
46 (1,2) | 53 | 39 | |||
45 (1,2) | 52 | 38 | |||
44 (1,2) | 51 | 37 | |||
43 (1,2) | 50 | 36 | |||
42 (1,2) | 49 | 35 | |||
41 (1,2) | 48 | 34 | |||
40 (1,2) | 47 | 33 | |||
39 (1,2) | 46 | 32 | |||
38 (1,2) | 45 | 31 | |||
37 (1,2) | 44 | 30 | |||
36 (1,2) | 43 | 29 | |||
35 (1,2) | 42 | 28 | |||
34 (1,2) | 41 | 27 | |||
33 (1,2) | 40 | 26 (1,2) | |||
32 (1,2) | 39 (1,2) | 25 (1,2) | |||
31 (1,2) | 38 (1,2) | 24 (1,2) | |||
30 (1,2) | 37 (1,2) | 23 (1,2) | |||
29 (1,2) | 36 (1,2) | 22 (1,2) | |||
28 (1,2,3) | 35 (1,2) | 21 (1,2) | |||
27 (1,2,3) | 34 (1,2) | 20 (1,2) | |||
26 (1,2,3) | 33 (1,2) | 19 (1,2) | |||
25 (1,2,3) | 32 (1,2) | 18 (1,2) | |||
24 (1,2,3) | 31 (1,2) | 17 (1,2) | |||
23 (1,2,3) | 30 (1,2) | 16 (1,2) | |||
22 (1,2,3) | 29 (1,2) | 15 (1,2) | |||
21 (1,2,3) | 28 (1,2) | 12.1 (1,2,3) | |||
20 (1,2,3) | 27 (1,2) | 12 (1,2,3) | |||
19 (1,2,3) | 26 (1,2) | 11.6 (1,2,3) | |||
18 (1,2,3) | 25 (1,2) | 11.5 | |||
17 (1,2,3) | 24 (1,2,3) | 11.1 | |||
16 (1,2,3) | 23 (1,2,3) | 11 | |||
15 (1,2,3) | 22 (1,2,3) | 10.6 | |||
14 (1,2,3) | 21 (1,2,3) | 10.5 | |||
13 (1,2,3) | 20 (1,2,3) | 10.0-10.1 | |||
12 (1,2,3) | 19 (1,2,3) | 9.5-9.6 | |||
11 (1,2,3) | 18 (1,2,3) | 9 | |||
10 (1,2,3) | 17 (1,2,3) | ||||
9 (1,2,3) | 16 (1,2,3) | ||||
8 (1,2,3) | 15 (1,2,3) | ||||
7 (1,2,3) | 14 | ||||
6 (1,2,3) | 13 | ||||
5 (1,2,3) | 12 | ||||
4 (1,2,3) | 11 | ||||
3.6 | 10 | ||||
3.5 | 9 | ||||
3 | 8 | ||||
2 | 7 | ||||
6 | |||||
5 | |||||
4 |
iOS Safari | Opera Mini | Android Browser | Blackberry Browser | Opera Mobile | Android Chrome | Android Firefox | IE Mobile | Android UC Browser | Samsung Internet | QQ Browser | Baidu Browser |
---|---|---|---|---|---|---|---|---|---|---|---|
12 | all | 67 | 10 (1,2) | 46 | 70 | 63 | 11 (1,2,3) | 11.8 | 7.2 | 1.2 (1,2) | 7.12 |
11.3-11.4 | 4.4.3-4.4.4 (1,2) | 7 | 12.1 (1,2,3) | 10 (1,2,3) | 6.2 | ||||||
11.0-11.2 | 4.4 (1,2) | 12 (1,2,3) | 5 | ||||||||
10.3 | 4.2-4.3 (1,2,3) | 11.5 | 4 | ||||||||
Show all | |||||||||||
10.0-10.2 | 4.1 (1,2,3) | 11.1 | |||||||||
9.3 (1,2) | 4 (1,2,3) | 11 | |||||||||
9.0-9.2 (1,2) | 3 | 10 | |||||||||
8.1-8.4 (1,2) | 2.3 | ||||||||||
8 (1,2) | 2.2 | ||||||||||
7.0-7.1 (1,2) | 2.1 | ||||||||||
6.0-6.1 (1,2,3) | |||||||||||
5.0-5.1 (1,2,3) | |||||||||||
4.2-4.3 | |||||||||||
4.0-4.1 | |||||||||||
3.2 |
Does not support reportValidity
Does not support validity.tooShort
. See also support for minlength
.
Does not support validity.badInput
Data by caniuse.com
Licensed under the Creative Commons Attribution License v4.0.
http://caniuse.com/#feat=constraint-validation