W3cubDocs

/Support Tables

Number input type

Form field type for numbers.

Spec https://html.spec.whatwg.org/multipage/forms.html#number-state-(type=number)
Status WHATWG Living Standard
IE Edge Firefox Chrome Safari Opera
    147 (3) 144    
    146 (3) 143 TP  
    145 (3) 142 26.1  
11 (1) 141 144 (3) 141 26.0 122
10 (1) 140 143 (3) 140 18.5-18.6 121
9 139 142 (3) 139 18.4 120
8 138 141 (3) 138 18.3 119
Show all
7 137 140 (3) 137 18.2 118
6 136 139 (3) 136 18.1 117
5.5 135 138 (3) 135 18.0 116
  134 137 (3) 134 17.6 115
  133 136 (3) 133 17.5 114
  132 135 (3) 132 17.4 113
  131 134 (3) 131 17.3 112
  130 133 (3) 130 17.2 111
  129 132 (3) 129 17.1 110
  128 131 (3) 128 17.0 109
  127 130 (3) 127 16.6 108
  126 129 (3) 126 16.5 107
  125 128 (3) 125 16.4 106
  124 127 (3) 124 16.3 105
  123 126 (3) 123 16.2 104
  122 125 (3) 122 16.1 103
  121 124 (3) 121 16.0 102
  120 123 (3) 120 15.6 101
  119 122 (3) 119 15.5 100
  118 121 (3) 118 15.4 99
  117 120 (3) 117 15.2-15.3 98
  116 119 (3) 116 15.1 97
  115 118 (3) 115 15 96
  114 117 (3) 114 14.1 95
  113 116 (3) 113 14 94
  112 115 (3) 112 13.1 93
  111 114 (3) 111 13 92
  110 113 (3) 110 12.1 91
  109 112 (3) 109 12 90
  108 111 (3) 108 11.1 89
  107 110 (3) 107 11 88
  106 109 (3) 106 10.1 87
  105 108 (3) 105 10 86
  104 107 (3) 104 9.1 85
  103 106 (3) 103 9 84
  102 105 (3) 102 8 83
  101 104 (3) 101 7.1 82
  100 103 (3) 100 7 81
  99 102 (3) 99 6.1 80
  98 101 (3) 98 6 79
  97 100 (3) 97 5.1 78
  96 99 (3) 96 5 77
  95 98 (3) 95 4 76
  94 97 (3) 94 3.2 75
  93 96 (3) 93 3.1 74
  92 95 (3) 92   73
  91 94 (3) 91   72
  90 93 (3) 90   71
  89 92 (3) 89   70
  88 91 (3) 88   69
  87 90 (3) 87   68
  86 89 (3) 86   67
  85 88 (3) 85   66
  84 87 (3) 84   65
  83 86 (3) 83   64
  81 85 (3) 81   63
  80 84 (3) 80   62
  79 83 (3) 79   60
  18 (4) 82 (3) 78   58
  17 (4) 81 (3) 77   57
  16 (4) 80 (3) 76   56
  15 (4) 79 (3) 75   55
  14 (4) 78 (3) 74   54
  13 (1) 77 (3) 73   53
  12 (1) 76 (3) 72   52
    75 (3) 71   51
    74 (3) 70   50
    73 (3) 69   49
    72 (3) 68   48
    71 (3) 67   47
    70 (3) 66   46
    69 (3) 65   45
    68 (3) 64   44
    67 (3) 63   43
    66 (3) 62   42
    65 (3) 61   41
    64 (3) 60   40
    63 (3) 59   39
    62 (3) 58   38
    61 (3) 57   37
    60 (3) 56   36
    59 (3) 55   35
    58 (3) 54   34
    57 (3) 53   33
    56 (3) 52   32
    55 (3) 51   31
    54 (3) 50   30
    53 (3) 49   29
    52 (3) 48   28
    51 (3) 47   27
    50 (3) 46   26
    49 (3) 45   25
    48 (3) 44   24
    47 (3) 43   23
    46 (3) 42   22
    45 (3) 41   21
    44 (3) 40   20
    43 (3) 39   19
    42 (3) 38   18
    41 (3) 37   17
    40 (3) 36   16
    39 (3) 35   15
    38 (3) 34   12.1
    37 (3) 33   12
    36 (3) 32   11.6
    35 (3) 31   11.5
    34 (3) 30   11.1
    33 (3) 29   11
    32 (3) 28   10.6
    31 (3) 27   10.5
    30 (3) 26   10.0-10.1
    29 (3) 25   9.5-9.6
    28 24   9
    27 23    
    26 22    
    25 21    
    24 20    
    23 19    
    22 18    
    21 17    
    20 16    
    19 15    
    18 14    
    17 13    
    16 12    
    15 11    
    14 10    
    13 9    
    12 8    
    11 7    
    10 6    
    9 5    
    8 4    
    7      
    6      
    5      
    4      
    3.6      
    3.5      
    3      
    2      
Safari on iOS Opera Mini Android Browser Blackberry Browser Opera Mobile Android Chrome Android Firefox IE Mobile Android UC Browser Samsung Internet QQ Browser Baidu Browser KaiOS Browser
26.1 (1,2)                        
26.0 (1,2) all 141 (1,2) 10 (1,2) 80 (1,2) 141 (1,2) 143 (1,3) 11 (1,2) 15.5 (1,2) 28 (1,2) 14.9 (1,2) 13.52 (1,2) 3.0-3.1 (3)
18.5-18.6 (1,2)   4.4.3-4.4.4 (1,2) 7 12.1     10 (1,2)   27 (1,2)     2.5 (3)
18.4 (1,2)   4.4 (1,2)   12         26 (1,2)      
18.3 (1,2)   4.2-4.3 (1,2)   11.5         25 (1,2)      
Show all
18.2 (1,2)   4.1 (1,2)   11.1         24 (1,2)      
18.1 (1,2)   4 (1,2)   11         23 (1,2)      
18.0 (1,2)   3   10         22 (1,2)      
17.6-17.7 (1,2)   2.3             21 (1,2)      
17.5 (1,2)   2.2             20 (1,2)      
17.4 (1,2)   2.1             19.0 (1,2)      
17.3 (1,2)                 18.0 (1,2)      
17.2 (1,2)                 17.0 (1,2)      
17.1 (1,2)                 16.0 (1,2)      
17.0 (1,2)                 15.0 (1,2)      
16.6-16.7 (1,2)                 14.0 (1,2)      
16.5 (1,2)                 13.0 (1,2)      
16.4 (1,2)                 12.0 (1,2)      
16.3 (1,2)                 11.1-11.2 (1,2)      
16.2 (1,2)                 10.1 (1,2)      
16.1 (1,2)                 9.2 (1,2)      
16.0 (1,2)                 8.2 (1,2)      
15.6-15.8 (1,2)                 7.2-7.4 (1,2)      
15.5 (1,2)                 6.2-6.4 (1,2)      
15.4 (1,2)                 5.0-5.4 (1,2)      
15.2-15.3 (1,2)                 4 (1,2)      
15.0-15.1 (1,2)                        
14.5-14.8 (1,2)                        
14.0-14.4 (1,2)                        
13.4-13.7 (1,2)                        
13.3 (1,2)                        
13.2 (1,2)                        
13.0-13.1 (1,2)                        
12.2-12.5 (1,2)                        
12.0-12.1 (1,2)                        
11.3-11.4 (1,2)                        
11.0-11.2 (1,2)                        
10.3 (1,2)                        
10.0-10.2 (1,2)                        
9.3 (1,2)                        
9.0-9.2 (1,2)                        
8.1-8.4 (1,2)                        
8 (1,2)                        
7.0-7.1 (1,2)                        
6.0-6.1 (1,2)                        
5.0-5.1 (1,2)                        
4.2-4.3 (1,2)                        
4.0-4.1 (1,2)                        
3.2 (1,2)                        

Notes

  1. Does not support increment/decrement, either via buttons in UI or via arrow up & down keys.

  2. UI widget does not take the "step", "min" or "max" attributes into account.

  3. Firefox doesn't support autocomplete content via datalist elements.

  4. Does not include increment/decrement buttons, but does support increment/decrement via arrow up & down keys.

Bugs

  • IE10 and IE11 also have broken .valueAsNumber results that don't follow the spec, e.g. for
    input.value = "9" input.valueAsNumber returns NaN.

  • The .stepUp and .stepDown methods incorrectly invoke InvalidStateError exceptions in IE 10 and 11.

  • IE does not convert the value to an invariant culture. IE simply submits the value as it was typed, using the user's regional settings, but the spec says the browser should submit in a normalized way.

  • Currently no mobile browsers and very few desktop browsers support using commas for languages where commas are used as decimal separators.

  • Firefox 39 in Mac OSX by default does not prevent alpha characters input and Firefox 42 validates only but It doesn't disable alpha keys input.

  • While in newer Edge versions changing the value through up/down arrow keys is supported, no input or change event is fired. See the MS Edge bug concerning input and MS Edge bug concerning change respectively.

Resources

Data by caniuse.com
Licensed under the Creative Commons Attribution License v4.0.
https://caniuse.com/input-number