dragndrop.json 7.6 KB

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