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
      73    
    65 (3) 72    
    64 (3) 71 TP  
11 (1) 18 (4) 63 (3) 70 12 56
10 (1) 17 (4) 62 (3) 69 11.1 55
9 16 (4) 61 (3) 68 11 54
8 15 (4) 60 (3) 67 10.1 53
Show all
7 14 (4) 59 (3) 66 10 52
6 13 (1) 58 (3) 65 9.1 51
5.5 12 (1) 57 (3) 64 9 50
    56 (3) 63 8 49
    55 (3) 62 7.1 48
    54 (3) 61 7 47
    53 (3) 60 6.1 46
    52 (3) 59 6 45
    51 (3) 58 5.1 44
    50 (3) 57 5 43
    49 (3) 56 4 42
    48 (3) 55 3.2 41
    47 (3) 54 3.1 40
    46 (3) 53   39
    45 (3) 52   38
    44 (3) 51   37
    43 (3) 50   36
    42 (3) 49   35
    41 (3) 48   34
    40 (3) 47   33
    39 (3) 46   32
    38 (3) 45   31
    37 (3) 44   30
    36 (3) 43   29
    35 (3) 42   28
    34 (3) 41   27
    33 (3) 40   26
    32 (3) 39   25
    31 (3) 38   24
    30 (3) 37   23
    29 (3) 36   22
    28 35   21
    27 34   20
    26 33   19
    25 32   18
    24 31   17
    23 30   16
    22 29   15
    21 28   12.1
    20 27   12
    19 26   11.6
    18 25   11.5
    17 24   11.1
    16 23   11
    15 22   10.6
    14 21   10.5
    13 20   10.0-10.1
    12 19   9.5-9.6
    11 18   9
    10 17    
    9 16    
    8 15    
    7 14    
    6 13    
    5 12    
    4 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 (1,2) all 67 (1,2) 10 (1,2) 46 (1,2) 70 (1,2) 63 (1,3) 11 (1,2) 11.8 (1,2) 7.2 (1,2) 1.2 7.12 (1,2)
11.3-11.4 (1,2)   4.4.3-4.4.4 (1,2) 7 12.1     10 (1,2)   6.2 (1,2)    
11.0-11.2 (1,2)   4.4 (1,2)   12         5 (1,2)    
10.3 (1,2)   4.2-4.3 (1,2)   11.5         4 (1,2)    
Show all
10.0-10.2 (1,2)   4.1 (1,2)   11.1              
9.3 (1,2)   4 (1,2)   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)                      
5.0-5.1 (1,2)                      
4.2-4.3 (1,2)                      
4.0-4.1 (1,2)                      
3.2 (1,2)                      

Notes

  1. UI widget does not include increment/decrement buttons.

  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 supports 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.
http://caniuse.com/#feat=input-number