Ei kuvausta

input-number.json 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. {
  2. "title":"Number input type",
  3. "description":"Form field type for numbers.",
  4. "spec":"https://html.spec.whatwg.org/multipage/forms.html#number-state-(type=number)",
  5. "status":"ls",
  6. "links":[
  7. {
  8. "url":"http://www.html5tutorial.info/html5-number.php",
  9. "title":"Tutorial"
  10. },
  11. {
  12. "url":"https://github.com/jonstipe/number-polyfill",
  13. "title":"Polyfill"
  14. },
  15. {
  16. "url":"https://raw.github.com/phiggins42/has.js/master/detect/form.js#input-type-number",
  17. "title":"has.js test"
  18. },
  19. {
  20. "url":"https://www.webplatform.org/docs/html/elements/input/type/number",
  21. "title":"WebPlatform Docs"
  22. },
  23. {
  24. "url":"https://www.slightfuture.com/webdev/html5-input-number-localization",
  25. "title":"Poor browser support for localized decimal marks, commas"
  26. }
  27. ],
  28. "bugs":[
  29. {
  30. "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`."
  31. },
  32. {
  33. "description":"The `.stepUp` and `.stepDown` methods incorrectly invoke `InvalidStateError` exceptions in IE 10 and 11."
  34. },
  35. {
  36. "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."
  37. },
  38. {
  39. "description":"Currently no mobile browsers and very few desktop browsers support using commas for languages where commas are used as decimal separators."
  40. },
  41. {
  42. "description":"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."
  43. },
  44. {
  45. "description":"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`](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10305583/) and [MS Edge bug concerning `change`](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10242461/) respectively."
  46. }
  47. ],
  48. "categories":[
  49. "HTML5"
  50. ],
  51. "stats":{
  52. "ie":{
  53. "5.5":"n",
  54. "6":"n",
  55. "7":"n",
  56. "8":"n",
  57. "9":"n",
  58. "10":"y #1",
  59. "11":"y #1"
  60. },
  61. "edge":{
  62. "12":"y #1",
  63. "13":"y #1",
  64. "14":"y #4",
  65. "15":"y #4",
  66. "16":"y #4",
  67. "17":"y #4"
  68. },
  69. "firefox":{
  70. "2":"n",
  71. "3":"n",
  72. "3.5":"n",
  73. "3.6":"n",
  74. "4":"n",
  75. "5":"n",
  76. "6":"n",
  77. "7":"n",
  78. "8":"n",
  79. "9":"n",
  80. "10":"n",
  81. "11":"n",
  82. "12":"n",
  83. "13":"n",
  84. "14":"n",
  85. "15":"n",
  86. "16":"n",
  87. "17":"n",
  88. "18":"n",
  89. "19":"n",
  90. "20":"n",
  91. "21":"n",
  92. "22":"n",
  93. "23":"n",
  94. "24":"n",
  95. "25":"n",
  96. "26":"n",
  97. "27":"n",
  98. "28":"n",
  99. "29":"y #3",
  100. "30":"y #3",
  101. "31":"y #3",
  102. "32":"y #3",
  103. "33":"y #3",
  104. "34":"y #3",
  105. "35":"y #3",
  106. "36":"y #3",
  107. "37":"y #3",
  108. "38":"y #3",
  109. "39":"y #3",
  110. "40":"y #3",
  111. "41":"y #3",
  112. "42":"y #3",
  113. "43":"y #3",
  114. "44":"y #3",
  115. "45":"y #3",
  116. "46":"y #3",
  117. "47":"y #3",
  118. "48":"y #3",
  119. "49":"y #3",
  120. "50":"y #3",
  121. "51":"y #3",
  122. "52":"y #3",
  123. "53":"y #3",
  124. "54":"y #3",
  125. "55":"y #3",
  126. "56":"y #3",
  127. "57":"y #3",
  128. "58":"y #3",
  129. "59":"y #3",
  130. "60":"y #3",
  131. "61":"y #3"
  132. },
  133. "chrome":{
  134. "4":"n",
  135. "5":"n",
  136. "6":"y",
  137. "7":"y",
  138. "8":"y",
  139. "9":"y",
  140. "10":"y",
  141. "11":"y",
  142. "12":"y",
  143. "13":"y",
  144. "14":"y",
  145. "15":"y",
  146. "16":"y",
  147. "17":"y",
  148. "18":"y",
  149. "19":"y",
  150. "20":"y",
  151. "21":"y",
  152. "22":"y",
  153. "23":"y",
  154. "24":"y",
  155. "25":"y",
  156. "26":"y",
  157. "27":"y",
  158. "28":"y",
  159. "29":"y",
  160. "30":"y",
  161. "31":"y",
  162. "32":"y",
  163. "33":"y",
  164. "34":"y",
  165. "35":"y",
  166. "36":"y",
  167. "37":"y",
  168. "38":"y",
  169. "39":"y",
  170. "40":"y",
  171. "41":"y",
  172. "42":"y",
  173. "43":"y",
  174. "44":"y",
  175. "45":"y",
  176. "46":"y",
  177. "47":"y",
  178. "48":"y",
  179. "49":"y",
  180. "50":"y",
  181. "51":"y",
  182. "52":"y",
  183. "53":"y",
  184. "54":"y",
  185. "55":"y",
  186. "56":"y",
  187. "57":"y",
  188. "58":"y",
  189. "59":"y",
  190. "60":"y",
  191. "61":"y",
  192. "62":"y",
  193. "63":"y",
  194. "64":"y",
  195. "65":"y",
  196. "66":"y",
  197. "67":"y"
  198. },
  199. "safari":{
  200. "3.1":"n",
  201. "3.2":"n",
  202. "4":"n",
  203. "5":"y",
  204. "5.1":"y",
  205. "6":"y",
  206. "6.1":"y",
  207. "7":"y",
  208. "7.1":"y",
  209. "8":"y",
  210. "9":"y",
  211. "9.1":"y",
  212. "10":"y",
  213. "10.1":"y",
  214. "11":"y",
  215. "11.1":"y",
  216. "TP":"y"
  217. },
  218. "opera":{
  219. "9":"y",
  220. "9.5-9.6":"y",
  221. "10.0-10.1":"y",
  222. "10.5":"y",
  223. "10.6":"y",
  224. "11":"y",
  225. "11.1":"y",
  226. "11.5":"y",
  227. "11.6":"y",
  228. "12":"y",
  229. "12.1":"y",
  230. "15":"y",
  231. "16":"y",
  232. "17":"y",
  233. "18":"y",
  234. "19":"y",
  235. "20":"y",
  236. "21":"y",
  237. "22":"y",
  238. "23":"y",
  239. "24":"y",
  240. "25":"y",
  241. "26":"y",
  242. "27":"y",
  243. "28":"y",
  244. "29":"y",
  245. "30":"y",
  246. "31":"y",
  247. "32":"y",
  248. "33":"y",
  249. "34":"y",
  250. "35":"y",
  251. "36":"y",
  252. "37":"y",
  253. "38":"y",
  254. "39":"y",
  255. "40":"y",
  256. "41":"y",
  257. "42":"y",
  258. "43":"y",
  259. "44":"y",
  260. "45":"y",
  261. "46":"y",
  262. "47":"y",
  263. "48":"y",
  264. "49":"y",
  265. "50":"y",
  266. "51":"y",
  267. "52":"y"
  268. },
  269. "ios_saf":{
  270. "3.2":"a #1 #2",
  271. "4.0-4.1":"a #1 #2",
  272. "4.2-4.3":"a #1 #2",
  273. "5.0-5.1":"a #1 #2",
  274. "6.0-6.1":"a #1 #2",
  275. "7.0-7.1":"a #1 #2",
  276. "8":"a #1 #2",
  277. "8.1-8.4":"a #1 #2",
  278. "9.0-9.2":"a #1 #2",
  279. "9.3":"a #1 #2",
  280. "10.0-10.2":"a #1 #2",
  281. "10.3":"a #1 #2",
  282. "11.0-11.2":"a #1 #2",
  283. "11.3":"a #1 #2"
  284. },
  285. "op_mini":{
  286. "all":"n"
  287. },
  288. "android":{
  289. "2.1":"n",
  290. "2.2":"n",
  291. "2.3":"n",
  292. "3":"n",
  293. "4":"a #1 #2",
  294. "4.1":"a #1 #2",
  295. "4.2-4.3":"a #1 #2",
  296. "4.4":"a #1 #2",
  297. "4.4.3-4.4.4":"a #1 #2",
  298. "62":"a #1 #2"
  299. },
  300. "bb":{
  301. "7":"n",
  302. "10":"a #1 #2"
  303. },
  304. "op_mob":{
  305. "10":"y",
  306. "11":"y",
  307. "11.1":"y",
  308. "11.5":"y",
  309. "12":"y",
  310. "12.1":"y",
  311. "37":"a #1 #2"
  312. },
  313. "and_chr":{
  314. "64":"a #1 #2"
  315. },
  316. "and_ff":{
  317. "57":"y #1 #3"
  318. },
  319. "ie_mob":{
  320. "10":"a #1 #2",
  321. "11":"a #1 #2"
  322. },
  323. "and_uc":{
  324. "11.8":"a #1 #2"
  325. },
  326. "samsung":{
  327. "4":"a #1 #2",
  328. "5":"a #1 #2",
  329. "6.2":"a #1 #2"
  330. },
  331. "and_qq":{
  332. "1.2":"y"
  333. },
  334. "baidu":{
  335. "7.12":"a #1 #2"
  336. }
  337. },
  338. "notes":"",
  339. "notes_by_num":{
  340. "1":"UI widget does not include increment/decrement buttons.",
  341. "2":"UI widget does not take the \"step\", \"min\" or \"max\" attributes into account.",
  342. "3":"Firefox doesn't support [autocomplete content via datalist](https://codepen.io/graste/pen/bNoVKW) elements.",
  343. "4":"Does not include increment/decrement buttons, but does supports increment/decrement via arrow up & down keys."
  344. },
  345. "usage_perc_y":42,
  346. "usage_perc_a":52.67,
  347. "ucprefix":false,
  348. "parent":"forms",
  349. "keywords":"spinner,input type=\"number\"",
  350. "ie_id":"",
  351. "chrome_id":"",
  352. "firefox_id":"",
  353. "webkit_id":"",
  354. "shown":true
  355. }