dragndrop.json 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. {
  2. "title":"Drag and Drop",
  3. "description":"Method of easily dragging and dropping elements on a page, requiring minimal JavaScript.",
  4. "spec":"https://html.spec.whatwg.org/multipage/interaction.html#dnd",
  5. "status":"ls",
  6. "links":[
  7. {
  8. "url":"http://html5doctor.com/native-drag-and-drop/",
  9. "title":"HTML5 Doctor article"
  10. },
  11. {
  12. "url":"http://nettutsplus.s3.amazonaws.com/64_html5dragdrop/demo/index.html",
  13. "title":"Shopping cart demo"
  14. },
  15. {
  16. "url":"http://html5demos.com/drag",
  17. "title":"Demo with link blocks"
  18. },
  19. {
  20. "url":"https://www.webplatform.org/docs/dom/DragEvent",
  21. "title":"WebPlatform Docs"
  22. },
  23. {
  24. "url":"https://github.com/MihaiValentin/setDragImage-IE",
  25. "title":"Polyfill for setDragImage in IE"
  26. },
  27. {
  28. "url":"http://blog.teamtreehouse.com/implementing-native-drag-and-drop",
  29. "title":"Implementing Native Drag and Drop"
  30. },
  31. {
  32. "url":"https://github.com/timruffles/ios-html5-drag-drop-shim",
  33. "title":"iOS/Android shim for HTML 5 drag'n'drop"
  34. },
  35. {
  36. "url":"https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/6542268-setdragimage-on-datatransfer-of-dragevent",
  37. "title":"Microsoft Edge setDragImage feature request on UserVoice"
  38. }
  39. ],
  40. "bugs":[
  41. {
  42. "description":"In Chrome, DataTransfer.addElement is not implemented. There is no other way to implement a draggable object, that updates during the drag due to some other circumstances (e.g. changes color on a valid drop spot), as it is just a static image if addElement is not supported.\r\n"
  43. },
  44. {
  45. "description":"In Firefox, the dragstart event does not fire on button elements. This effectively disables drag and drop for button elements.\r\n"
  46. },
  47. {
  48. "description":"In IE9-10 draggable attribute could be effectively applied for link and image elements. For div and span elements you should call 'element.dragDrop()' to start drag event.\r\n"
  49. },
  50. {
  51. "description":"In Safari 8, after setting `event.dataTransfer.dropEffect`, the value in the `drop` event is always `'none'`"
  52. },
  53. {
  54. "description":"Safari doesn't implement the `DragEvent` interface. It adds a `dataTransfer` property to `MouseEvent` instead. See [WebKit bug #103423](https://bugs.webkit.org/show_bug.cgi?id=103423)."
  55. },
  56. {
  57. "description":"Chrome strips out newlines from `text/uri-list` [see bug](https://code.google.com/p/chromium/issues/detail?id=239745)"
  58. },
  59. {
  60. "description":"Reportedly, using \"text/plain\" as the format for `event.dataTransfer.setData` and `event.dataTransfer.getData` does not work in IE9-11 and causes a JS error. The format needs to be \"text\", which seems to work in all the mainstream browsers (Chrome, Safari, Firefox, IE9-11, Edge)."
  61. },
  62. {
  63. "description":"In Firefox, the dragging near the edge of scrollable regions does not cause [scrolling](https://bugzilla.mozilla.org/show_bug.cgi?id=41708)"
  64. },
  65. {
  66. "description":"In Firefox, an element won't drag unless the `dragstart` handler sets `dataTransfer` data (even if it doesn't get retrieved). [Test case](https://codepen.io/michai/pen/NwORqO)"
  67. }
  68. ],
  69. "categories":[
  70. "HTML5"
  71. ],
  72. "stats":{
  73. "ie":{
  74. "5.5":"a #1 #3",
  75. "6":"a #1 #3",
  76. "7":"a #1 #3",
  77. "8":"a #1 #3",
  78. "9":"a #1 #3",
  79. "10":"a #2 #3",
  80. "11":"a #2 #3"
  81. },
  82. "edge":{
  83. "12":"a #2",
  84. "13":"a #2",
  85. "14":"a #2",
  86. "15":"a #2",
  87. "16":"a #2",
  88. "17":"a #2",
  89. "18":"y"
  90. },
  91. "firefox":{
  92. "2":"p",
  93. "3":"p",
  94. "3.5":"y",
  95. "3.6":"y",
  96. "4":"y",
  97. "5":"y",
  98. "6":"y",
  99. "7":"y",
  100. "8":"y",
  101. "9":"y",
  102. "10":"y",
  103. "11":"y",
  104. "12":"y",
  105. "13":"y",
  106. "14":"y",
  107. "15":"y",
  108. "16":"y",
  109. "17":"y",
  110. "18":"y",
  111. "19":"y",
  112. "20":"y",
  113. "21":"y",
  114. "22":"y",
  115. "23":"y",
  116. "24":"y",
  117. "25":"y",
  118. "26":"y",
  119. "27":"y",
  120. "28":"y",
  121. "29":"y",
  122. "30":"y",
  123. "31":"y",
  124. "32":"y",
  125. "33":"y",
  126. "34":"y",
  127. "35":"y",
  128. "36":"y",
  129. "37":"y",
  130. "38":"y",
  131. "39":"y",
  132. "40":"y",
  133. "41":"y",
  134. "42":"y",
  135. "43":"y",
  136. "44":"y",
  137. "45":"y",
  138. "46":"y",
  139. "47":"y",
  140. "48":"y",
  141. "49":"y",
  142. "50":"y",
  143. "51":"y",
  144. "52":"y",
  145. "53":"y",
  146. "54":"y",
  147. "55":"y",
  148. "56":"y",
  149. "57":"y",
  150. "58":"y",
  151. "59":"y",
  152. "60":"y",
  153. "61":"y",
  154. "62":"y",
  155. "63":"y",
  156. "64":"y",
  157. "65":"y",
  158. "66":"y"
  159. },
  160. "chrome":{
  161. "4":"y",
  162. "5":"y",
  163. "6":"y",
  164. "7":"y",
  165. "8":"y",
  166. "9":"y",
  167. "10":"y",
  168. "11":"y",
  169. "12":"y",
  170. "13":"y",
  171. "14":"y",
  172. "15":"y",
  173. "16":"y",
  174. "17":"y",
  175. "18":"y",
  176. "19":"y",
  177. "20":"y",
  178. "21":"y",
  179. "22":"y",
  180. "23":"y",
  181. "24":"y",
  182. "25":"y",
  183. "26":"y",
  184. "27":"y",
  185. "28":"y",
  186. "29":"y",
  187. "30":"y",
  188. "31":"y",
  189. "32":"y",
  190. "33":"y",
  191. "34":"y",
  192. "35":"y",
  193. "36":"y",
  194. "37":"y",
  195. "38":"y",
  196. "39":"y",
  197. "40":"y",
  198. "41":"y",
  199. "42":"y",
  200. "43":"y",
  201. "44":"y",
  202. "45":"y",
  203. "46":"y",
  204. "47":"y",
  205. "48":"y",
  206. "49":"y",
  207. "50":"y",
  208. "51":"y",
  209. "52":"y",
  210. "53":"y",
  211. "54":"y",
  212. "55":"y",
  213. "56":"y",
  214. "57":"y",
  215. "58":"y",
  216. "59":"y",
  217. "60":"y",
  218. "61":"y",
  219. "62":"y",
  220. "63":"y",
  221. "64":"y",
  222. "65":"y",
  223. "66":"y",
  224. "67":"y",
  225. "68":"y",
  226. "69":"y",
  227. "70":"y",
  228. "71":"y",
  229. "72":"y",
  230. "73":"y",
  231. "74":"y"
  232. },
  233. "safari":{
  234. "3.1":"y",
  235. "3.2":"y",
  236. "4":"y",
  237. "5":"y",
  238. "5.1":"y",
  239. "6":"y",
  240. "6.1":"y",
  241. "7":"y",
  242. "7.1":"y",
  243. "8":"y",
  244. "9":"y",
  245. "9.1":"y",
  246. "10":"y",
  247. "10.1":"y",
  248. "11":"y",
  249. "11.1":"y",
  250. "12":"y",
  251. "TP":"y"
  252. },
  253. "opera":{
  254. "9":"p",
  255. "9.5-9.6":"p",
  256. "10.0-10.1":"p",
  257. "10.5":"p",
  258. "10.6":"p",
  259. "11":"p",
  260. "11.1":"p",
  261. "11.5":"p",
  262. "11.6":"p",
  263. "12":"y",
  264. "12.1":"y",
  265. "15":"y",
  266. "16":"y",
  267. "17":"y",
  268. "18":"y",
  269. "19":"y",
  270. "20":"y",
  271. "21":"y",
  272. "22":"y",
  273. "23":"y",
  274. "24":"y",
  275. "25":"y",
  276. "26":"y",
  277. "27":"y",
  278. "28":"y",
  279. "29":"y",
  280. "30":"y",
  281. "31":"y",
  282. "32":"y",
  283. "33":"y",
  284. "34":"y",
  285. "35":"y",
  286. "36":"y",
  287. "37":"y",
  288. "38":"y",
  289. "39":"y",
  290. "40":"y",
  291. "41":"y",
  292. "42":"y",
  293. "43":"y",
  294. "44":"y",
  295. "45":"y",
  296. "46":"y",
  297. "47":"y",
  298. "48":"y",
  299. "49":"y",
  300. "50":"y",
  301. "51":"y",
  302. "52":"y",
  303. "53":"y",
  304. "54":"y",
  305. "55":"y",
  306. "56":"y",
  307. "57":"y"
  308. },
  309. "ios_saf":{
  310. "3.2":"n",
  311. "4.0-4.1":"n",
  312. "4.2-4.3":"n",
  313. "5.0-5.1":"n",
  314. "6.0-6.1":"n",
  315. "7.0-7.1":"n",
  316. "8":"n",
  317. "8.1-8.4":"n",
  318. "9.0-9.2":"n",
  319. "9.3":"n",
  320. "10.0-10.2":"n",
  321. "10.3":"n",
  322. "11.0-11.2":"y",
  323. "11.3-11.4":"y",
  324. "12.0-12.1":"y"
  325. },
  326. "op_mini":{
  327. "all":"n"
  328. },
  329. "android":{
  330. "2.1":"n",
  331. "2.2":"n",
  332. "2.3":"n",
  333. "3":"n",
  334. "4":"n",
  335. "4.1":"n",
  336. "4.2-4.3":"n",
  337. "4.4":"n",
  338. "4.4.3-4.4.4":"n",
  339. "67":"n"
  340. },
  341. "bb":{
  342. "7":"n",
  343. "10":"n"
  344. },
  345. "op_mob":{
  346. "10":"p",
  347. "11":"p",
  348. "11.1":"p",
  349. "11.5":"p",
  350. "12":"p",
  351. "12.1":"y",
  352. "46":"n"
  353. },
  354. "and_chr":{
  355. "70":"n"
  356. },
  357. "and_ff":{
  358. "63":"n"
  359. },
  360. "ie_mob":{
  361. "10":"y",
  362. "11":"y"
  363. },
  364. "and_uc":{
  365. "11.8":"n"
  366. },
  367. "samsung":{
  368. "4":"n",
  369. "5":"n",
  370. "6.2":"n",
  371. "7.2":"n"
  372. },
  373. "and_qq":{
  374. "1.2":"n"
  375. },
  376. "baidu":{
  377. "7.12":"n"
  378. }
  379. },
  380. "notes":"`dataTransfer.items` only supported by Chrome.\r\n\r\nCurrently no browser supports the `dropzone` attribute.\r\n\r\nFirefox supports any kind of DOM elements for `.setDragImage`. Chrome must have either an `HTMLImageElement` or any kind of DOM elements attached to the DOM and within the viewport of the browser for `.setDragImage`.",
  381. "notes_by_num":{
  382. "1":"Partial support refers to no support for the `dataTransfer.files` or `.types` objects",
  383. "2":"Partial support refers to not supporting `.setDragImage`",
  384. "3":"Partial support refers to limited supported formats for `dataTransfer.setData`/`getData`."
  385. },
  386. "usage_perc_y":48.76,
  387. "usage_perc_a":4.93,
  388. "ucprefix":false,
  389. "parent":"",
  390. "keywords":"draganddrop, draggable",
  391. "ie_id":"",
  392. "chrome_id":"",
  393. "firefox_id":"",
  394. "webkit_id":"",
  395. "shown":true
  396. }