暂无描述

dataset.json 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. {
  2. "title":"dataset & data-* attributes",
  3. "description":"Method of applying and accessing custom data to elements.",
  4. "spec":"https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes",
  5. "status":"ls",
  6. "links":[
  7. {
  8. "url":"http://html5doctor.com/html5-custom-data-attributes/",
  9. "title":"HTML5 Doctor article"
  10. },
  11. {
  12. "url":"http://html5demos.com/dataset",
  13. "title":"Demo using dataset"
  14. },
  15. {
  16. "url":"https://raw.github.com/phiggins42/has.js/master/detect/dom.js#dom-dataset",
  17. "title":"has.js test"
  18. },
  19. {
  20. "url":"https://www.webplatform.org/docs/html/attributes/data-*",
  21. "title":"WebPlatform Docs"
  22. },
  23. {
  24. "url":"https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.dataset",
  25. "title":"MDN Web Docs - dataset"
  26. },
  27. {
  28. "url":"https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attributes",
  29. "title":"MDN Guide - Using data-* attributes"
  30. },
  31. {
  32. "url":"https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/15885483-support-dataset-and-data-attributes-on-svg-element",
  33. "title":"MS Edge UserVoice #15885483: Support dataset and data attributes on SVG elements"
  34. }
  35. ],
  36. "bugs":[
  37. {
  38. "description":"Android 2.3 cannot read `data-*` properties from `select` elements.\r\n"
  39. },
  40. {
  41. "description":"Safari 10 and below can return `undefined` on properties of `dataset` in some cases. ([See bug](https://bugs.webkit.org/show_bug.cgi?id=161454)).\r\n"
  42. }
  43. ],
  44. "categories":[
  45. "HTML5"
  46. ],
  47. "stats":{
  48. "ie":{
  49. "5.5":"a",
  50. "6":"a",
  51. "7":"a",
  52. "8":"a",
  53. "9":"a",
  54. "10":"a",
  55. "11":"y"
  56. },
  57. "edge":{
  58. "12":"y",
  59. "13":"y",
  60. "14":"y",
  61. "15":"y",
  62. "16":"y",
  63. "17":"y"
  64. },
  65. "firefox":{
  66. "2":"a",
  67. "3":"a",
  68. "3.5":"a",
  69. "3.6":"a",
  70. "4":"a",
  71. "5":"a",
  72. "6":"y",
  73. "7":"y",
  74. "8":"y",
  75. "9":"y",
  76. "10":"y",
  77. "11":"y",
  78. "12":"y",
  79. "13":"y",
  80. "14":"y",
  81. "15":"y",
  82. "16":"y",
  83. "17":"y",
  84. "18":"y",
  85. "19":"y",
  86. "20":"y",
  87. "21":"y",
  88. "22":"y",
  89. "23":"y",
  90. "24":"y",
  91. "25":"y",
  92. "26":"y",
  93. "27":"y",
  94. "28":"y",
  95. "29":"y",
  96. "30":"y",
  97. "31":"y",
  98. "32":"y",
  99. "33":"y",
  100. "34":"y",
  101. "35":"y",
  102. "36":"y",
  103. "37":"y",
  104. "38":"y",
  105. "39":"y",
  106. "40":"y",
  107. "41":"y",
  108. "42":"y",
  109. "43":"y",
  110. "44":"y",
  111. "45":"y",
  112. "46":"y",
  113. "47":"y",
  114. "48":"y",
  115. "49":"y",
  116. "50":"y",
  117. "51":"y #1",
  118. "52":"y #1",
  119. "53":"y #1",
  120. "54":"y #1",
  121. "55":"y #1",
  122. "56":"y #1",
  123. "57":"y #1",
  124. "58":"y #1",
  125. "59":"y #1",
  126. "60":"y #1",
  127. "61":"y #1"
  128. },
  129. "chrome":{
  130. "4":"a",
  131. "5":"a",
  132. "6":"a",
  133. "7":"y #1",
  134. "8":"y #1",
  135. "9":"y #1",
  136. "10":"y #1",
  137. "11":"y #1",
  138. "12":"y #1",
  139. "13":"y #1",
  140. "14":"y #1",
  141. "15":"y #1",
  142. "16":"y #1",
  143. "17":"y #1",
  144. "18":"y #1",
  145. "19":"y #1",
  146. "20":"y #1",
  147. "21":"y #1",
  148. "22":"y #1",
  149. "23":"y #1",
  150. "24":"y #1",
  151. "25":"y #1",
  152. "26":"y #1",
  153. "27":"y #1",
  154. "28":"y #1",
  155. "29":"y #1",
  156. "30":"y #1",
  157. "31":"y #1",
  158. "32":"y #1",
  159. "33":"y #1",
  160. "34":"y #1",
  161. "35":"y #1",
  162. "36":"y #1",
  163. "37":"y #1",
  164. "38":"y #1",
  165. "39":"y #1",
  166. "40":"y #1",
  167. "41":"y #1",
  168. "42":"y #1",
  169. "43":"y #1",
  170. "44":"y #1",
  171. "45":"y",
  172. "46":"y",
  173. "47":"y",
  174. "48":"y",
  175. "49":"y",
  176. "50":"y",
  177. "51":"y",
  178. "52":"y",
  179. "53":"y",
  180. "54":"y",
  181. "55":"y #1",
  182. "56":"y #1",
  183. "57":"y #1",
  184. "58":"y #1",
  185. "59":"y #1",
  186. "60":"y #1",
  187. "61":"y #1",
  188. "62":"y #1",
  189. "63":"y #1",
  190. "64":"y #1",
  191. "65":"y #1",
  192. "66":"y #1",
  193. "67":"y #1"
  194. },
  195. "safari":{
  196. "3.1":"a",
  197. "3.2":"a",
  198. "4":"a",
  199. "5":"a",
  200. "5.1":"y #1",
  201. "6":"y #1",
  202. "6.1":"y #1",
  203. "7":"y #1",
  204. "7.1":"y #1",
  205. "8":"y #1",
  206. "9":"y #1",
  207. "9.1":"y #1",
  208. "10":"y #1",
  209. "10.1":"y #1",
  210. "11":"y #1",
  211. "11.1":"y #1",
  212. "TP":"y #1"
  213. },
  214. "opera":{
  215. "9":"a",
  216. "9.5-9.6":"a",
  217. "10.0-10.1":"a",
  218. "10.5":"a",
  219. "10.6":"a",
  220. "11":"a",
  221. "11.1":"y",
  222. "11.5":"y",
  223. "11.6":"y",
  224. "12":"y",
  225. "12.1":"y",
  226. "15":"y #1",
  227. "16":"y #1",
  228. "17":"y #1",
  229. "18":"y #1",
  230. "19":"y #1",
  231. "20":"y #1",
  232. "21":"y #1",
  233. "22":"y #1",
  234. "23":"y #1",
  235. "24":"y #1",
  236. "25":"y #1",
  237. "26":"y #1",
  238. "27":"y #1",
  239. "28":"y #1",
  240. "29":"y #1",
  241. "30":"y #1",
  242. "31":"y #1",
  243. "32":"y",
  244. "33":"y",
  245. "34":"y",
  246. "35":"y",
  247. "36":"y",
  248. "37":"y",
  249. "38":"y",
  250. "39":"y",
  251. "40":"y",
  252. "41":"y",
  253. "42":"y #1",
  254. "43":"y #1",
  255. "44":"y #1",
  256. "45":"y #1",
  257. "46":"y #1",
  258. "47":"y #1",
  259. "48":"y #1",
  260. "49":"y #1",
  261. "50":"y #1",
  262. "51":"y #1",
  263. "52":"y #1"
  264. },
  265. "ios_saf":{
  266. "3.2":"a",
  267. "4.0-4.1":"a",
  268. "4.2-4.3":"a",
  269. "5.0-5.1":"y #1",
  270. "6.0-6.1":"y #1",
  271. "7.0-7.1":"y #1",
  272. "8":"y #1",
  273. "8.1-8.4":"y #1",
  274. "9.0-9.2":"y #1",
  275. "9.3":"y #1",
  276. "10.0-10.2":"y #1",
  277. "10.3":"y #1",
  278. "11.0-11.2":"y #1",
  279. "11.3":"y #1"
  280. },
  281. "op_mini":{
  282. "all":"a"
  283. },
  284. "android":{
  285. "2.1":"a",
  286. "2.2":"a",
  287. "2.3":"a",
  288. "3":"y #1",
  289. "4":"y #1",
  290. "4.1":"y #1",
  291. "4.2-4.3":"y #1",
  292. "4.4":"y #1",
  293. "4.4.3-4.4.4":"y #1",
  294. "62":"y #1"
  295. },
  296. "bb":{
  297. "7":"y #1",
  298. "10":"y #1"
  299. },
  300. "op_mob":{
  301. "10":"a",
  302. "11":"a",
  303. "11.1":"y",
  304. "11.5":"y",
  305. "12":"y",
  306. "12.1":"y",
  307. "37":"y #1"
  308. },
  309. "and_chr":{
  310. "64":"y #1"
  311. },
  312. "and_ff":{
  313. "57":"y #1"
  314. },
  315. "ie_mob":{
  316. "10":"a",
  317. "11":"y"
  318. },
  319. "and_uc":{
  320. "11.8":"y #1"
  321. },
  322. "samsung":{
  323. "4":"y #1",
  324. "5":"y #1",
  325. "6.2":"y #1"
  326. },
  327. "and_qq":{
  328. "1.2":"y"
  329. },
  330. "baidu":{
  331. "7.12":"y #1"
  332. }
  333. },
  334. "notes":"Partial support refers to being able to use `data-*` attributes and access them using `getAttribute`. \r\n\r\n\"Supported\" refers to accessing the values using the `dataset` property. Current spec only refers to support on HTML elements, only some browsers also have support for SVG/MathML elements.",
  335. "notes_by_num":{
  336. "1":"While the HTML spec doesn't require it, these browsers also support `dataset` and `data-*` attributes on SVG elements, in compliance with [current plans for SVG2](https://www.w3.org/2015/01/15-svg-minutes.html#item03)"
  337. },
  338. "usage_perc_y":94.55,
  339. "usage_perc_a":3.69,
  340. "ucprefix":false,
  341. "parent":"",
  342. "keywords":"DOMStringMap",
  343. "ie_id":"",
  344. "chrome_id":"",
  345. "firefox_id":"",
  346. "webkit_id":"",
  347. "shown":true
  348. }