input-number.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513
  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.ctrl.blog/entry/html5-input-number-localization.html",
  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://web.archive.org/web/20171210190913/https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10305583/) and [MS Edge bug concerning `change`](https://web.archive.org/web/20190421015807/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. "18":"y #4",
  69. "79":"y",
  70. "80":"y",
  71. "81":"y",
  72. "83":"y",
  73. "84":"y",
  74. "85":"y",
  75. "86":"y",
  76. "87":"y",
  77. "88":"y",
  78. "89":"y",
  79. "90":"y",
  80. "91":"y",
  81. "92":"y",
  82. "93":"y",
  83. "94":"y",
  84. "95":"y",
  85. "96":"y",
  86. "97":"y",
  87. "98":"y",
  88. "99":"y"
  89. },
  90. "firefox":{
  91. "2":"n",
  92. "3":"n",
  93. "3.5":"n",
  94. "3.6":"n",
  95. "4":"n",
  96. "5":"n",
  97. "6":"n",
  98. "7":"n",
  99. "8":"n",
  100. "9":"n",
  101. "10":"n",
  102. "11":"n",
  103. "12":"n",
  104. "13":"n",
  105. "14":"n",
  106. "15":"n",
  107. "16":"n",
  108. "17":"n",
  109. "18":"n",
  110. "19":"n",
  111. "20":"n",
  112. "21":"n",
  113. "22":"n",
  114. "23":"n",
  115. "24":"n",
  116. "25":"n",
  117. "26":"n",
  118. "27":"n",
  119. "28":"n",
  120. "29":"y #3",
  121. "30":"y #3",
  122. "31":"y #3",
  123. "32":"y #3",
  124. "33":"y #3",
  125. "34":"y #3",
  126. "35":"y #3",
  127. "36":"y #3",
  128. "37":"y #3",
  129. "38":"y #3",
  130. "39":"y #3",
  131. "40":"y #3",
  132. "41":"y #3",
  133. "42":"y #3",
  134. "43":"y #3",
  135. "44":"y #3",
  136. "45":"y #3",
  137. "46":"y #3",
  138. "47":"y #3",
  139. "48":"y #3",
  140. "49":"y #3",
  141. "50":"y #3",
  142. "51":"y #3",
  143. "52":"y #3",
  144. "53":"y #3",
  145. "54":"y #3",
  146. "55":"y #3",
  147. "56":"y #3",
  148. "57":"y #3",
  149. "58":"y #3",
  150. "59":"y #3",
  151. "60":"y #3",
  152. "61":"y #3",
  153. "62":"y #3",
  154. "63":"y #3",
  155. "64":"y #3",
  156. "65":"y #3",
  157. "66":"y #3",
  158. "67":"y #3",
  159. "68":"y #3",
  160. "69":"y #3",
  161. "70":"y #3",
  162. "71":"y #3",
  163. "72":"y #3",
  164. "73":"y #3",
  165. "74":"y #3",
  166. "75":"y #3",
  167. "76":"y #3",
  168. "77":"y #3",
  169. "78":"y #3",
  170. "79":"y #3",
  171. "80":"y #3",
  172. "81":"y #3",
  173. "82":"y #3",
  174. "83":"y #3",
  175. "84":"y #3",
  176. "85":"y #3",
  177. "86":"y #3",
  178. "87":"y #3",
  179. "88":"y #3",
  180. "89":"y #3",
  181. "90":"y #3",
  182. "91":"y #3",
  183. "92":"y #3",
  184. "93":"y #3",
  185. "94":"y #3",
  186. "95":"y #3",
  187. "96":"y #3",
  188. "97":"y #3",
  189. "98":"y #3",
  190. "99":"y #3",
  191. "100":"y #3"
  192. },
  193. "chrome":{
  194. "4":"n",
  195. "5":"n",
  196. "6":"y",
  197. "7":"y",
  198. "8":"y",
  199. "9":"y",
  200. "10":"y",
  201. "11":"y",
  202. "12":"y",
  203. "13":"y",
  204. "14":"y",
  205. "15":"y",
  206. "16":"y",
  207. "17":"y",
  208. "18":"y",
  209. "19":"y",
  210. "20":"y",
  211. "21":"y",
  212. "22":"y",
  213. "23":"y",
  214. "24":"y",
  215. "25":"y",
  216. "26":"y",
  217. "27":"y",
  218. "28":"y",
  219. "29":"y",
  220. "30":"y",
  221. "31":"y",
  222. "32":"y",
  223. "33":"y",
  224. "34":"y",
  225. "35":"y",
  226. "36":"y",
  227. "37":"y",
  228. "38":"y",
  229. "39":"y",
  230. "40":"y",
  231. "41":"y",
  232. "42":"y",
  233. "43":"y",
  234. "44":"y",
  235. "45":"y",
  236. "46":"y",
  237. "47":"y",
  238. "48":"y",
  239. "49":"y",
  240. "50":"y",
  241. "51":"y",
  242. "52":"y",
  243. "53":"y",
  244. "54":"y",
  245. "55":"y",
  246. "56":"y",
  247. "57":"y",
  248. "58":"y",
  249. "59":"y",
  250. "60":"y",
  251. "61":"y",
  252. "62":"y",
  253. "63":"y",
  254. "64":"y",
  255. "65":"y",
  256. "66":"y",
  257. "67":"y",
  258. "68":"y",
  259. "69":"y",
  260. "70":"y",
  261. "71":"y",
  262. "72":"y",
  263. "73":"y",
  264. "74":"y",
  265. "75":"y",
  266. "76":"y",
  267. "77":"y",
  268. "78":"y",
  269. "79":"y",
  270. "80":"y",
  271. "81":"y",
  272. "83":"y",
  273. "84":"y",
  274. "85":"y",
  275. "86":"y",
  276. "87":"y",
  277. "88":"y",
  278. "89":"y",
  279. "90":"y",
  280. "91":"y",
  281. "92":"y",
  282. "93":"y",
  283. "94":"y",
  284. "95":"y",
  285. "96":"y",
  286. "97":"y",
  287. "98":"y",
  288. "99":"y",
  289. "100":"y",
  290. "101":"y",
  291. "102":"y",
  292. "103":"y"
  293. },
  294. "safari":{
  295. "3.1":"n",
  296. "3.2":"n",
  297. "4":"n",
  298. "5":"y",
  299. "5.1":"y",
  300. "6":"y",
  301. "6.1":"y",
  302. "7":"y",
  303. "7.1":"y",
  304. "8":"y",
  305. "9":"y",
  306. "9.1":"y",
  307. "10":"y",
  308. "10.1":"y",
  309. "11":"y",
  310. "11.1":"y",
  311. "12":"y",
  312. "12.1":"y",
  313. "13":"y",
  314. "13.1":"y",
  315. "14":"y",
  316. "14.1":"y",
  317. "15":"y",
  318. "15.1":"y",
  319. "15.2-15.3":"y",
  320. "15.4":"y",
  321. "TP":"y"
  322. },
  323. "opera":{
  324. "9":"y",
  325. "9.5-9.6":"y",
  326. "10.0-10.1":"y",
  327. "10.5":"y",
  328. "10.6":"y",
  329. "11":"y",
  330. "11.1":"y",
  331. "11.5":"y",
  332. "11.6":"y",
  333. "12":"y",
  334. "12.1":"y",
  335. "15":"y",
  336. "16":"y",
  337. "17":"y",
  338. "18":"y",
  339. "19":"y",
  340. "20":"y",
  341. "21":"y",
  342. "22":"y",
  343. "23":"y",
  344. "24":"y",
  345. "25":"y",
  346. "26":"y",
  347. "27":"y",
  348. "28":"y",
  349. "29":"y",
  350. "30":"y",
  351. "31":"y",
  352. "32":"y",
  353. "33":"y",
  354. "34":"y",
  355. "35":"y",
  356. "36":"y",
  357. "37":"y",
  358. "38":"y",
  359. "39":"y",
  360. "40":"y",
  361. "41":"y",
  362. "42":"y",
  363. "43":"y",
  364. "44":"y",
  365. "45":"y",
  366. "46":"y",
  367. "47":"y",
  368. "48":"y",
  369. "49":"y",
  370. "50":"y",
  371. "51":"y",
  372. "52":"y",
  373. "53":"y",
  374. "54":"y",
  375. "55":"y",
  376. "56":"y",
  377. "57":"y",
  378. "58":"y",
  379. "60":"y",
  380. "62":"y",
  381. "63":"y",
  382. "64":"y",
  383. "65":"y",
  384. "66":"y",
  385. "67":"y",
  386. "68":"y",
  387. "69":"y",
  388. "70":"y",
  389. "71":"y",
  390. "72":"y",
  391. "73":"y",
  392. "74":"y",
  393. "75":"y",
  394. "76":"y",
  395. "77":"y",
  396. "78":"y",
  397. "79":"y",
  398. "80":"y",
  399. "81":"y",
  400. "82":"y",
  401. "83":"y"
  402. },
  403. "ios_saf":{
  404. "3.2":"a #1 #2",
  405. "4.0-4.1":"a #1 #2",
  406. "4.2-4.3":"a #1 #2",
  407. "5.0-5.1":"a #1 #2",
  408. "6.0-6.1":"a #1 #2",
  409. "7.0-7.1":"a #1 #2",
  410. "8":"a #1 #2",
  411. "8.1-8.4":"a #1 #2",
  412. "9.0-9.2":"a #1 #2",
  413. "9.3":"a #1 #2",
  414. "10.0-10.2":"a #1 #2",
  415. "10.3":"a #1 #2",
  416. "11.0-11.2":"a #1 #2",
  417. "11.3-11.4":"a #1 #2",
  418. "12.0-12.1":"a #1 #2",
  419. "12.2-12.5":"a #1 #2",
  420. "13.0-13.1":"a #1 #2",
  421. "13.2":"a #1 #2",
  422. "13.3":"a #1 #2",
  423. "13.4-13.7":"a #1 #2",
  424. "14.0-14.4":"a #1 #2",
  425. "14.5-14.8":"a #1 #2",
  426. "15.0-15.1":"a #1 #2",
  427. "15.2-15.3":"a #1 #2",
  428. "15.4":"a #1 #2"
  429. },
  430. "op_mini":{
  431. "all":"n"
  432. },
  433. "android":{
  434. "2.1":"n",
  435. "2.2":"n",
  436. "2.3":"n",
  437. "3":"n",
  438. "4":"a #1 #2",
  439. "4.1":"a #1 #2",
  440. "4.2-4.3":"a #1 #2",
  441. "4.4":"a #1 #2",
  442. "4.4.3-4.4.4":"a #1 #2",
  443. "99":"a #1 #2"
  444. },
  445. "bb":{
  446. "7":"n",
  447. "10":"a #1 #2"
  448. },
  449. "op_mob":{
  450. "10":"y",
  451. "11":"y",
  452. "11.1":"y",
  453. "11.5":"y",
  454. "12":"y",
  455. "12.1":"y",
  456. "64":"a #1 #2"
  457. },
  458. "and_chr":{
  459. "100":"a #1 #2"
  460. },
  461. "and_ff":{
  462. "98":"y #1 #3"
  463. },
  464. "ie_mob":{
  465. "10":"a #1 #2",
  466. "11":"a #1 #2"
  467. },
  468. "and_uc":{
  469. "12.12":"a #1 #2"
  470. },
  471. "samsung":{
  472. "4":"a #1 #2",
  473. "5.0-5.4":"a #1 #2",
  474. "6.2-6.4":"a #1 #2",
  475. "7.2-7.4":"a #1 #2",
  476. "8.2":"a #1 #2",
  477. "9.2":"a #1 #2",
  478. "10.1":"a #1 #2",
  479. "11.1-11.2":"a #1 #2",
  480. "12.0":"a #1 #2",
  481. "13.0":"a #1 #2",
  482. "14.0":"a #1 #2",
  483. "15.0":"a #1 #2",
  484. "16.0":"a #1 #2"
  485. },
  486. "and_qq":{
  487. "10.4":"a #1 #2"
  488. },
  489. "baidu":{
  490. "7.12":"a #1 #2"
  491. },
  492. "kaios":{
  493. "2.5":"y #3"
  494. }
  495. },
  496. "notes":"",
  497. "notes_by_num":{
  498. "1":"Does not support increment/decrement, either via buttons in UI or via arrow up & down keys.",
  499. "2":"UI widget does not take the \"step\", \"min\" or \"max\" attributes into account.",
  500. "3":"Firefox doesn't support [autocomplete content via datalist](https://codepen.io/graste/pen/bNoVKW) elements.",
  501. "4":"Does not include increment/decrement buttons, but does support increment/decrement via arrow up & down keys."
  502. },
  503. "usage_perc_y":40.1,
  504. "usage_perc_a":56.5,
  505. "ucprefix":false,
  506. "parent":"forms",
  507. "keywords":"spinner,input type=\"number\"",
  508. "ie_id":"",
  509. "chrome_id":"",
  510. "firefox_id":"",
  511. "webkit_id":"",
  512. "shown":true
  513. }