{ "title":"Number input type", "description":"Form field type for numbers.", "spec":"https://html.spec.whatwg.org/multipage/forms.html#number-state-(type=number)", "status":"ls", "links":[ { "url":"http://www.html5tutorial.info/html5-number.php", "title":"Tutorial" }, { "url":"https://github.com/jonstipe/number-polyfill", "title":"Polyfill" }, { "url":"https://raw.github.com/phiggins42/has.js/master/detect/form.js#input-type-number", "title":"has.js test" }, { "url":"http://docs.webplatform.org/wiki/html/elements/input/type/number", "title":"WebPlatform Docs" } ], "bugs":[ { "description":"IE10 and IE11 also have broken `.valueAsNumber` results that don't follow the spec, e.g. for\r\n`input.value = \"9\"` `input.valueAsNumber` returns `NaN`." }, { "description":"The `.stepUp` and `.stepDown` methods incorrectly invoke `InvalidStateError` exceptions in IE 10 and 11." }, { "description":"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." }, { "description":"Currently no mobile browsers and very few desktop browsers support using commas for languages where commas are used as decimal separators." } ], "categories":[ "HTML5" ], "stats":{ "ie":{ "5.5":"n", "6":"n", "7":"n", "8":"n", "9":"n", "10":"a #1", "11":"a #1" }, "edge":{ "12":"a #1", "13":"a #1" }, "firefox":{ "2":"n", "3":"n", "3.5":"n", "3.6":"n", "4":"n", "5":"n", "6":"n", "7":"n", "8":"n", "9":"n", "10":"n", "11":"n", "12":"n", "13":"n", "14":"n", "15":"n", "16":"n", "17":"n", "18":"n", "19":"n", "20":"n", "21":"n", "22":"n", "23":"n", "24":"n", "25":"n", "26":"n", "27":"n", "28":"n", "29":"y #3", "30":"y #3", "31":"y #3", "32":"y #3", "33":"y #3", "34":"y #3", "35":"y #3", "36":"y #3", "37":"y #3", "38":"y #3", "39":"y #3", "40":"y #3", "41":"y #3", "42":"y #3", "43":"y #3", "44":"y #3" }, "chrome":{ "4":"n", "5":"n", "6":"y", "7":"y", "8":"y", "9":"y", "10":"y", "11":"y", "12":"y", "13":"y", "14":"y", "15":"y", "16":"y", "17":"y", "18":"y", "19":"y", "20":"y", "21":"y", "22":"y", "23":"y", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y", "35":"y", "36":"y", "37":"y", "38":"y", "39":"y", "40":"y", "41":"y", "42":"y", "43":"y", "44":"y", "45":"y", "46":"y", "47":"y", "48":"y" }, "safari":{ "3.1":"n", "3.2":"n", "4":"n", "5":"y", "5.1":"y", "6":"y", "6.1":"y", "7":"y", "7.1":"y", "8":"y", "9":"y" }, "opera":{ "9":"y", "9.5-9.6":"y", "10.0-10.1":"y", "10.5":"y", "10.6":"y", "11":"y", "11.1":"y", "11.5":"y", "11.6":"y", "12":"y", "12.1":"y", "15":"y", "16":"y", "17":"y", "18":"y", "19":"y", "20":"y", "21":"y", "22":"y", "23":"y", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y" }, "ios_saf":{ "3.2":"a #1 #2", "4.0-4.1":"a #1 #2", "4.2-4.3":"a #1 #2", "5.0-5.1":"a #1 #2", "6.0-6.1":"a #1 #2", "7.0-7.1":"a #1 #2", "8":"a #1 #2", "8.1-8.4":"a #1 #2", "9":"a #1 #2" }, "op_mini":{ "5.0-8.0":"n" }, "android":{ "2.1":"n", "2.2":"n", "2.3":"n", "3":"n", "4":"a #1 #2", "4.1":"a #1 #2", "4.2-4.3":"a #1 #2", "4.4":"a #1 #2", "4.4.3-4.4.4":"a #1 #2", "44":"a #1 #2" }, "bb":{ "7":"n", "10":"a" }, "op_mob":{ "10":"y", "11":"y", "11.1":"y", "11.5":"y", "12":"y", "12.1":"y", "30":"a" }, "and_chr":{ "45":"a" }, "and_ff":{ "41":"a #3" }, "ie_mob":{ "10":"a", "11":"a" }, "and_uc":{ "9.9":"a" } }, "notes":"", "notes_by_num":{ "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](http://codepen.io/graste/pen/bNoVKW) elements." }, "usage_perc_y":43.04, "usage_perc_a":45.91, "ucprefix":false, "parent":"forms", "keywords":"spinner,input type=\"number\"", "ie_id":"", "chrome_id":"", "shown":true }