Aucune description

dragndrop.json 8.4KB

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