Sin descripción

maxlength.json 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. {
  2. "title":"maxlength attribute for input and textarea elements",
  3. "description":"Declares an upper bound on the number of characters the user can input. Normally the UI ignores attempts by the user to type in additional characters beyond this limit.",
  4. "spec":"https://html.spec.whatwg.org/multipage/forms.html#attr-input-maxlength",
  5. "status":"ls",
  6. "links":[
  7. {
  8. "url":"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-maxlength",
  9. "title":"MDN Web Docs - attribute maxlength"
  10. }
  11. ],
  12. "bugs":[
  13. {
  14. "description":"In Opera 12.1 & below `ValidityState.tooLong` is true when the input's initial value exceeds the maxlength. Per the spec, it should instead be false until the user edits the value."
  15. }
  16. ],
  17. "categories":[
  18. "DOM",
  19. "HTML5",
  20. "JS API"
  21. ],
  22. "stats":{
  23. "ie":{
  24. "5.5":"u",
  25. "6":"a #1 #2 #3",
  26. "7":"a #1 #2 #3",
  27. "8":"a #1 #2 #3",
  28. "9":"a #1 #2 #3",
  29. "10":"y",
  30. "11":"y"
  31. },
  32. "edge":{
  33. "12":"y #4",
  34. "13":"y #4",
  35. "14":"y #4",
  36. "15":"y #4",
  37. "16":"y #4",
  38. "17":"y #4"
  39. },
  40. "firefox":{
  41. "2":"a #1 #2 #3",
  42. "3":"a #1 #2 #3",
  43. "3.5":"a #1 #2 #3",
  44. "3.6":"a #1 #2 #3",
  45. "4":"y #4",
  46. "5":"y #4",
  47. "6":"y #4",
  48. "7":"y #4",
  49. "8":"y #4",
  50. "9":"y #4",
  51. "10":"y #4",
  52. "11":"y #4",
  53. "12":"y #4",
  54. "13":"y #4",
  55. "14":"y #4",
  56. "15":"y #4",
  57. "16":"y #4",
  58. "17":"y #4",
  59. "18":"y #4",
  60. "19":"y #4",
  61. "20":"y #4",
  62. "21":"y #4",
  63. "22":"y #4",
  64. "23":"y #4",
  65. "24":"y #4",
  66. "25":"y #4",
  67. "26":"y #4",
  68. "27":"y #4",
  69. "28":"y #4",
  70. "29":"y #4",
  71. "30":"y #4",
  72. "31":"y #4",
  73. "32":"y #4",
  74. "33":"y #4",
  75. "34":"y #4",
  76. "35":"y #4",
  77. "36":"y #4",
  78. "37":"y #4",
  79. "38":"y #4",
  80. "39":"y #4",
  81. "40":"y #4",
  82. "41":"y #4",
  83. "42":"y #4",
  84. "43":"y #4",
  85. "44":"y #4",
  86. "45":"y #4",
  87. "46":"y #4",
  88. "47":"y #4",
  89. "48":"y #4",
  90. "49":"y #4",
  91. "50":"y #4",
  92. "51":"y",
  93. "52":"y",
  94. "53":"y",
  95. "54":"y",
  96. "55":"y",
  97. "56":"y",
  98. "57":"y",
  99. "58":"y",
  100. "59":"y",
  101. "60":"y",
  102. "61":"y"
  103. },
  104. "chrome":{
  105. "4":"y",
  106. "5":"y",
  107. "6":"y",
  108. "7":"y",
  109. "8":"y",
  110. "9":"y",
  111. "10":"y",
  112. "11":"y",
  113. "12":"y",
  114. "13":"y",
  115. "14":"y",
  116. "15":"y",
  117. "16":"y",
  118. "17":"y",
  119. "18":"y",
  120. "19":"y",
  121. "20":"y",
  122. "21":"y",
  123. "22":"y",
  124. "23":"y",
  125. "24":"y",
  126. "25":"y",
  127. "26":"y",
  128. "27":"y",
  129. "28":"y",
  130. "29":"y",
  131. "30":"y",
  132. "31":"y",
  133. "32":"y",
  134. "33":"y",
  135. "34":"y",
  136. "35":"y",
  137. "36":"y",
  138. "37":"y",
  139. "38":"y",
  140. "39":"y",
  141. "40":"y",
  142. "41":"y",
  143. "42":"y",
  144. "43":"y",
  145. "44":"y",
  146. "45":"y",
  147. "46":"y",
  148. "47":"y",
  149. "48":"y",
  150. "49":"y",
  151. "50":"y",
  152. "51":"y",
  153. "52":"y",
  154. "53":"y",
  155. "54":"y",
  156. "55":"y",
  157. "56":"y",
  158. "57":"y",
  159. "58":"y",
  160. "59":"y",
  161. "60":"y",
  162. "61":"y",
  163. "62":"y",
  164. "63":"y",
  165. "64":"y",
  166. "65":"y",
  167. "66":"y",
  168. "67":"y"
  169. },
  170. "safari":{
  171. "3.1":"u",
  172. "3.2":"a #1 #2 #3",
  173. "4":"a #1 #2 #3",
  174. "5":"u",
  175. "5.1":"y",
  176. "6":"y",
  177. "6.1":"y",
  178. "7":"y",
  179. "7.1":"y",
  180. "8":"y",
  181. "9":"y",
  182. "9.1":"y",
  183. "10":"y",
  184. "10.1":"y",
  185. "11":"y",
  186. "11.1":"y",
  187. "TP":"y"
  188. },
  189. "opera":{
  190. "9":"u",
  191. "9.5-9.6":"a #1",
  192. "10.0-10.1":"a #1",
  193. "10.5":"a #1",
  194. "10.6":"a #1",
  195. "11":"a #1",
  196. "11.1":"a #1",
  197. "11.5":"a #1",
  198. "11.6":"a #1",
  199. "12":"a #1",
  200. "12.1":"a #1",
  201. "15":"y",
  202. "16":"y",
  203. "17":"y",
  204. "18":"y",
  205. "19":"y",
  206. "20":"y",
  207. "21":"y",
  208. "22":"y",
  209. "23":"y",
  210. "24":"y",
  211. "25":"y",
  212. "26":"y",
  213. "27":"y",
  214. "28":"y",
  215. "29":"y",
  216. "30":"y",
  217. "31":"y",
  218. "32":"y",
  219. "33":"y",
  220. "34":"y",
  221. "35":"y",
  222. "36":"y",
  223. "37":"y",
  224. "38":"y",
  225. "39":"y",
  226. "40":"y",
  227. "41":"y",
  228. "42":"y",
  229. "43":"y",
  230. "44":"y",
  231. "45":"y",
  232. "46":"y",
  233. "47":"y",
  234. "48":"y",
  235. "49":"y",
  236. "50":"y",
  237. "51":"y",
  238. "52":"y"
  239. },
  240. "ios_saf":{
  241. "3.2":"u",
  242. "4.0-4.1":"y",
  243. "4.2-4.3":"y",
  244. "5.0-5.1":"y",
  245. "6.0-6.1":"y",
  246. "7.0-7.1":"y",
  247. "8":"a #5",
  248. "8.1-8.4":"a #5",
  249. "9.0-9.2":"y",
  250. "9.3":"y",
  251. "10.0-10.2":"y",
  252. "10.3":"y",
  253. "11.0-11.2":"y",
  254. "11.3":"y"
  255. },
  256. "op_mini":{
  257. "all":"a #1"
  258. },
  259. "android":{
  260. "2.1":"u",
  261. "2.2":"u",
  262. "2.3":"y",
  263. "3":"y",
  264. "4":"y",
  265. "4.1":"y",
  266. "4.2-4.3":"y",
  267. "4.4":"y",
  268. "4.4.3-4.4.4":"y",
  269. "62":"y #6"
  270. },
  271. "bb":{
  272. "7":"y",
  273. "10":"y"
  274. },
  275. "op_mob":{
  276. "10":"a #1",
  277. "11":"a #1",
  278. "11.1":"a #1",
  279. "11.5":"a #1",
  280. "12":"a #1",
  281. "12.1":"a #1",
  282. "37":"a #6"
  283. },
  284. "and_chr":{
  285. "64":"y #6"
  286. },
  287. "and_ff":{
  288. "57":"y #6"
  289. },
  290. "ie_mob":{
  291. "10":"y",
  292. "11":"y"
  293. },
  294. "and_uc":{
  295. "11.8":"y"
  296. },
  297. "samsung":{
  298. "4":"y #6",
  299. "5":"y #6",
  300. "6.2":"y #6"
  301. },
  302. "and_qq":{
  303. "1.2":"y"
  304. },
  305. "baidu":{
  306. "7.12":"y"
  307. }
  308. },
  309. "notes":"",
  310. "notes_by_num":{
  311. "1":"`<textarea>`'s' UI does not prevent the user from typing additional characters beyond the `maxlength` limit.",
  312. "2":"Does not support the `HTMLTextAreaElement.maxLength` DOM property.",
  313. "3":"Does not support [`ValidityState.tooLong`](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/tooLong). In some cases, this is because `.validity` is not supported in the first place.",
  314. "4":"Does not support `ValidityState.tooLong` correctly in the (unlikely) case of the value being initially set too long, then changed by the user to a still incorrect state. See [Firefox bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1203844) and [MS Edge bug](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/4678527/).",
  315. "5":"`<input>`'s UI does not prevent the user from typing additional characters beyond the `maxlength` limit between two existing characters of the string.",
  316. "6":"Allows text beyond maxlength to be entered at first, but removes all characters past the maxlength when focus is lost."
  317. },
  318. "usage_perc_y":94.57,
  319. "usage_perc_a":3.63,
  320. "ucprefix":false,
  321. "parent":"form-validation",
  322. "keywords":"maximum,length,input,textarea,too,long,validity,state",
  323. "ie_id":"",
  324. "chrome_id":"",
  325. "firefox_id":"",
  326. "webkit_id":"",
  327. "shown":true
  328. }