dragndrop.json 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  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. "categories":[
  67. "HTML5"
  68. ],
  69. "stats":{
  70. "ie":{
  71. "5.5":"a #1 #3",
  72. "6":"a #1 #3",
  73. "7":"a #1 #3",
  74. "8":"a #1 #3",
  75. "9":"a #1 #3",
  76. "10":"a #2 #3",
  77. "11":"a #2 #3"
  78. },
  79. "edge":{
  80. "12":"a #2",
  81. "13":"a #2",
  82. "14":"a #2",
  83. "15":"a #2",
  84. "16":"a #2"
  85. },
  86. "firefox":{
  87. "2":"p",
  88. "3":"p",
  89. "3.5":"y",
  90. "3.6":"y",
  91. "4":"y",
  92. "5":"y",
  93. "6":"y",
  94. "7":"y",
  95. "8":"y",
  96. "9":"y",
  97. "10":"y",
  98. "11":"y",
  99. "12":"y",
  100. "13":"y",
  101. "14":"y",
  102. "15":"y",
  103. "16":"y",
  104. "17":"y",
  105. "18":"y",
  106. "19":"y",
  107. "20":"y",
  108. "21":"y",
  109. "22":"y",
  110. "23":"y",
  111. "24":"y",
  112. "25":"y",
  113. "26":"y",
  114. "27":"y",
  115. "28":"y",
  116. "29":"y",
  117. "30":"y",
  118. "31":"y",
  119. "32":"y",
  120. "33":"y",
  121. "34":"y",
  122. "35":"y",
  123. "36":"y",
  124. "37":"y",
  125. "38":"y",
  126. "39":"y",
  127. "40":"y",
  128. "41":"y",
  129. "42":"y",
  130. "43":"y",
  131. "44":"y",
  132. "45":"y",
  133. "46":"y",
  134. "47":"y",
  135. "48":"y",
  136. "49":"y",
  137. "50":"y",
  138. "51":"y",
  139. "52":"y",
  140. "53":"y",
  141. "54":"y",
  142. "55":"y",
  143. "56":"y",
  144. "57":"y"
  145. },
  146. "chrome":{
  147. "4":"y",
  148. "5":"y",
  149. "6":"y",
  150. "7":"y",
  151. "8":"y",
  152. "9":"y",
  153. "10":"y",
  154. "11":"y",
  155. "12":"y",
  156. "13":"y",
  157. "14":"y",
  158. "15":"y",
  159. "16":"y",
  160. "17":"y",
  161. "18":"y",
  162. "19":"y",
  163. "20":"y",
  164. "21":"y",
  165. "22":"y",
  166. "23":"y",
  167. "24":"y",
  168. "25":"y",
  169. "26":"y",
  170. "27":"y",
  171. "28":"y",
  172. "29":"y",
  173. "30":"y",
  174. "31":"y",
  175. "32":"y",
  176. "33":"y",
  177. "34":"y",
  178. "35":"y",
  179. "36":"y",
  180. "37":"y",
  181. "38":"y",
  182. "39":"y",
  183. "40":"y",
  184. "41":"y",
  185. "42":"y",
  186. "43":"y",
  187. "44":"y",
  188. "45":"y",
  189. "46":"y",
  190. "47":"y",
  191. "48":"y",
  192. "49":"y",
  193. "50":"y",
  194. "51":"y",
  195. "52":"y",
  196. "53":"y",
  197. "54":"y",
  198. "55":"y",
  199. "56":"y",
  200. "57":"y",
  201. "58":"y",
  202. "59":"y",
  203. "60":"y",
  204. "61":"y",
  205. "62":"y",
  206. "63":"y"
  207. },
  208. "safari":{
  209. "3.1":"y",
  210. "3.2":"y",
  211. "4":"y",
  212. "5":"y",
  213. "5.1":"y",
  214. "6":"y",
  215. "6.1":"y",
  216. "7":"y",
  217. "7.1":"y",
  218. "8":"y",
  219. "9":"y",
  220. "9.1":"y",
  221. "10":"y",
  222. "10.1":"y",
  223. "11":"y",
  224. "TP":"y"
  225. },
  226. "opera":{
  227. "9":"p",
  228. "9.5-9.6":"p",
  229. "10.0-10.1":"p",
  230. "10.5":"p",
  231. "10.6":"p",
  232. "11":"p",
  233. "11.1":"p",
  234. "11.5":"p",
  235. "11.6":"p",
  236. "12":"y",
  237. "12.1":"y",
  238. "15":"y",
  239. "16":"y",
  240. "17":"y",
  241. "18":"y",
  242. "19":"y",
  243. "20":"y",
  244. "21":"y",
  245. "22":"y",
  246. "23":"y",
  247. "24":"y",
  248. "25":"y",
  249. "26":"y",
  250. "27":"y",
  251. "28":"y",
  252. "29":"y",
  253. "30":"y",
  254. "31":"y",
  255. "32":"y",
  256. "33":"y",
  257. "34":"y",
  258. "35":"y",
  259. "36":"y",
  260. "37":"y",
  261. "38":"y",
  262. "39":"y",
  263. "40":"y",
  264. "41":"y",
  265. "42":"y",
  266. "43":"y",
  267. "44":"y",
  268. "45":"y",
  269. "46":"y",
  270. "47":"y",
  271. "48":"y"
  272. },
  273. "ios_saf":{
  274. "3.2":"n",
  275. "4.0-4.1":"n",
  276. "4.2-4.3":"n",
  277. "5.0-5.1":"n",
  278. "6.0-6.1":"n",
  279. "7.0-7.1":"n",
  280. "8":"n",
  281. "8.1-8.4":"n",
  282. "9.0-9.2":"n",
  283. "9.3":"n",
  284. "10.0-10.2":"n",
  285. "10.3":"n",
  286. "11":"y"
  287. },
  288. "op_mini":{
  289. "all":"n"
  290. },
  291. "android":{
  292. "2.1":"n",
  293. "2.2":"n",
  294. "2.3":"n",
  295. "3":"n",
  296. "4":"n",
  297. "4.1":"n",
  298. "4.2-4.3":"n",
  299. "4.4":"n",
  300. "4.4.3-4.4.4":"n",
  301. "56":"n"
  302. },
  303. "bb":{
  304. "7":"n",
  305. "10":"n"
  306. },
  307. "op_mob":{
  308. "10":"p",
  309. "11":"p",
  310. "11.1":"p",
  311. "11.5":"p",
  312. "12":"p",
  313. "12.1":"y",
  314. "37":"n"
  315. },
  316. "and_chr":{
  317. "59":"n"
  318. },
  319. "and_ff":{
  320. "54":"n"
  321. },
  322. "ie_mob":{
  323. "10":"y",
  324. "11":"y"
  325. },
  326. "and_uc":{
  327. "11.4":"n"
  328. },
  329. "samsung":{
  330. "4":"n",
  331. "5":"n"
  332. },
  333. "and_qq":{
  334. "1.2":"n"
  335. },
  336. "baidu":{
  337. "7.12":"n"
  338. }
  339. },
  340. "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`.",
  341. "notes_by_num":{
  342. "1":"Partial support refers to no support for the `dataTransfer.files` or `.types` objects",
  343. "2":"Partial support refers to not supporting `.setDragImage`",
  344. "3":"Partial support refers to limited supported formats for `dataTransfer.setData`/`getData`."
  345. },
  346. "usage_perc_y":34.63,
  347. "usage_perc_a":4.86,
  348. "ucprefix":false,
  349. "parent":"",
  350. "keywords":"draganddrop, draggable",
  351. "ie_id":"",
  352. "chrome_id":"",
  353. "firefox_id":"",
  354. "webkit_id":"",
  355. "shown":true
  356. }