Skip to content

Commit 32d131b

Browse files
authored
Chrome prevents + Firefox/Safari allow non-numeric user input to number fields (#25642)
Chrome prevents and Firefox/Safari allow non-numeric user input in the input Number state
1 parent 94cdbb7 commit 32d131b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

html/elements/input/number.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@
1212
],
1313
"support": {
1414
"chrome": {
15-
"version_added": "7"
15+
"version_added": "7",
16+
"notes": "Prevents users from typing non-numeric content."
1617
},
1718
"chrome_android": "mirror",
1819
"edge": {
1920
"version_added": "12"
2021
},
2122
"firefox": {
22-
"version_added": "29"
23+
"version_added": "29",
24+
"notes": "Allows users to type non-numeric content, with the `value` reflecting an empty string."
2325
},
2426
"firefox_android": "mirror",
2527
"ie": {
@@ -29,7 +31,8 @@
2931
"opera": "mirror",
3032
"opera_android": "mirror",
3133
"safari": {
32-
"version_added": "5.1"
34+
"version_added": "5.1",
35+
"notes": "Allows users to type non-numeric content, with the `value` reflecting an empty string."
3336
},
3437
"safari_ios": "mirror",
3538
"samsunginternet_android": "mirror",

0 commit comments

Comments
 (0)