dragndrop.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  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":"Chrome strips out newlines from `text/uri-list` [see bug](https://code.google.com/p/chromium/issues/detail?id=239745)"
  43. },
  44. {
  45. "description":"In Chrome, `DataTransfer.addElement` is not implemented. There is no other way to implement a draggable object which 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."
  46. },
  47. {
  48. "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)"
  49. },
  50. {
  51. "description":"In Firefox, drag and drop does not work when the page is served as `application/xhtml+xml` [Mozilla Bug #751778](https://bugzilla.mozilla.org/show_bug.cgi?id=751778), [Mozilla Bug #1106160](https://bugzilla.mozilla.org/show_bug.cgi?id=1106160)"
  52. },
  53. {
  54. "description":"In Firefox, the `dragstart` event does not fire on `button` elements. This effectively disables drag and drop for `button` elements."
  55. },
  56. {
  57. "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)."
  58. },
  59. {
  60. "description":"In Safari 8, after setting `event.dataTransfer.dropEffect`, the value in the `drop` event is always `'none'`"
  61. },
  62. {
  63. "description":"In IE9-10, the `draggable` attribute could be effectively applied for `a` and `img` elements. For `div` and `span` elements you should call `element.dragDrop()` to start drag event."
  64. },
  65. {
  66. "description":"In IE9-11, using `\"text/plain\"` as the format for `event.dataTransfer.setData` and `event.dataTransfer.getData` reportedly does not work 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)."
  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. "79":"y",
  91. "80":"y",
  92. "81":"y",
  93. "83":"y",
  94. "84":"y",
  95. "85":"y",
  96. "86":"y",
  97. "87":"y",
  98. "88":"y",
  99. "89":"y",
  100. "90":"y",
  101. "91":"y",
  102. "92":"y",
  103. "93":"y",
  104. "94":"y",
  105. "95":"y",
  106. "96":"y",
  107. "97":"y",
  108. "98":"y"
  109. },
  110. "firefox":{
  111. "2":"p",
  112. "3":"p",
  113. "3.5":"y",
  114. "3.6":"y",
  115. "4":"y",
  116. "5":"y",
  117. "6":"y",
  118. "7":"y",
  119. "8":"y",
  120. "9":"y",
  121. "10":"y",
  122. "11":"y",
  123. "12":"y",
  124. "13":"y",
  125. "14":"y",
  126. "15":"y",
  127. "16":"y",
  128. "17":"y",
  129. "18":"y",
  130. "19":"y",
  131. "20":"y",
  132. "21":"y",
  133. "22":"y",
  134. "23":"y",
  135. "24":"y",
  136. "25":"y",
  137. "26":"y",
  138. "27":"y",
  139. "28":"y",
  140. "29":"y",
  141. "30":"y",
  142. "31":"y",
  143. "32":"y",
  144. "33":"y",
  145. "34":"y",
  146. "35":"y",
  147. "36":"y",
  148. "37":"y",
  149. "38":"y",
  150. "39":"y",
  151. "40":"y",
  152. "41":"y",
  153. "42":"y",
  154. "43":"y",
  155. "44":"y",
  156. "45":"y",
  157. "46":"y",
  158. "47":"y",
  159. "48":"y",
  160. "49":"y",
  161. "50":"y",
  162. "51":"y",
  163. "52":"y",
  164. "53":"y",
  165. "54":"y",
  166. "55":"y",
  167. "56":"y",
  168. "57":"y",
  169. "58":"y",
  170. "59":"y",
  171. "60":"y",
  172. "61":"y",
  173. "62":"y",
  174. "63":"y",
  175. "64":"y",
  176. "65":"y",
  177. "66":"y",
  178. "67":"y",
  179. "68":"y",
  180. "69":"y",
  181. "70":"y",
  182. "71":"y",
  183. "72":"y",
  184. "73":"y",
  185. "74":"y",
  186. "75":"y",
  187. "76":"y",
  188. "77":"y",
  189. "78":"y",
  190. "79":"y",
  191. "80":"y",
  192. "81":"y",
  193. "82":"y",
  194. "83":"y",
  195. "84":"y",
  196. "85":"y",
  197. "86":"y",
  198. "87":"y",
  199. "88":"y",
  200. "89":"y",
  201. "90":"y",
  202. "91":"y",
  203. "92":"y",
  204. "93":"y",
  205. "94":"y",
  206. "95":"y",
  207. "96":"y",
  208. "97":"y",
  209. "98":"y",
  210. "99":"y"
  211. },
  212. "chrome":{
  213. "4":"y",
  214. "5":"y",
  215. "6":"y",
  216. "7":"y",
  217. "8":"y",
  218. "9":"y",
  219. "10":"y",
  220. "11":"y",
  221. "12":"y",
  222. "13":"y",
  223. "14":"y",
  224. "15":"y",
  225. "16":"y",
  226. "17":"y",
  227. "18":"y",
  228. "19":"y",
  229. "20":"y",
  230. "21":"y",
  231. "22":"y",
  232. "23":"y",
  233. "24":"y",
  234. "25":"y",
  235. "26":"y",
  236. "27":"y",
  237. "28":"y",
  238. "29":"y",
  239. "30":"y",
  240. "31":"y",
  241. "32":"y",
  242. "33":"y",
  243. "34":"y",
  244. "35":"y",
  245. "36":"y",
  246. "37":"y",
  247. "38":"y",
  248. "39":"y",
  249. "40":"y",
  250. "41":"y",
  251. "42":"y",
  252. "43":"y",
  253. "44":"y",
  254. "45":"y",
  255. "46":"y",
  256. "47":"y",
  257. "48":"y",
  258. "49":"y",
  259. "50":"y",
  260. "51":"y",
  261. "52":"y",
  262. "53":"y",
  263. "54":"y",
  264. "55":"y",
  265. "56":"y",
  266. "57":"y",
  267. "58":"y",
  268. "59":"y",
  269. "60":"y",
  270. "61":"y",
  271. "62":"y",
  272. "63":"y",
  273. "64":"y",
  274. "65":"y",
  275. "66":"y",
  276. "67":"y",
  277. "68":"y",
  278. "69":"y",
  279. "70":"y",
  280. "71":"y",
  281. "72":"y",
  282. "73":"y",
  283. "74":"y",
  284. "75":"y",
  285. "76":"y",
  286. "77":"y",
  287. "78":"y",
  288. "79":"y",
  289. "80":"y",
  290. "81":"y",
  291. "83":"y",
  292. "84":"y",
  293. "85":"y",
  294. "86":"y",
  295. "87":"y",
  296. "88":"y",
  297. "89":"y",
  298. "90":"y",
  299. "91":"y",
  300. "92":"y",
  301. "93":"y",
  302. "94":"y",
  303. "95":"y",
  304. "96":"y",
  305. "97":"y",
  306. "98":"y",
  307. "99":"y",
  308. "100":"y",
  309. "101":"y"
  310. },
  311. "safari":{
  312. "3.1":"y",
  313. "3.2":"y",
  314. "4":"y",
  315. "5":"y",
  316. "5.1":"y",
  317. "6":"y",
  318. "6.1":"y",
  319. "7":"y",
  320. "7.1":"y",
  321. "8":"y",
  322. "9":"y",
  323. "9.1":"y",
  324. "10":"y",
  325. "10.1":"y",
  326. "11":"y",
  327. "11.1":"y",
  328. "12":"y",
  329. "12.1":"y",
  330. "13":"y",
  331. "13.1":"y",
  332. "14":"y",
  333. "14.1":"y",
  334. "15":"y",
  335. "15.1":"y",
  336. "15.2-15.3":"y",
  337. "15.4":"y",
  338. "TP":"y"
  339. },
  340. "opera":{
  341. "9":"p",
  342. "9.5-9.6":"p",
  343. "10.0-10.1":"p",
  344. "10.5":"p",
  345. "10.6":"p",
  346. "11":"p",
  347. "11.1":"p",
  348. "11.5":"p",
  349. "11.6":"p",
  350. "12":"y",
  351. "12.1":"y",
  352. "15":"y",
  353. "16":"y",
  354. "17":"y",
  355. "18":"y",
  356. "19":"y",
  357. "20":"y",
  358. "21":"y",
  359. "22":"y",
  360. "23":"y",
  361. "24":"y",
  362. "25":"y",
  363. "26":"y",
  364. "27":"y",
  365. "28":"y",
  366. "29":"y",
  367. "30":"y",
  368. "31":"y",
  369. "32":"y",
  370. "33":"y",
  371. "34":"y",
  372. "35":"y",
  373. "36":"y",
  374. "37":"y",
  375. "38":"y",
  376. "39":"y",
  377. "40":"y",
  378. "41":"y",
  379. "42":"y",
  380. "43":"y",
  381. "44":"y",
  382. "45":"y",
  383. "46":"y",
  384. "47":"y",
  385. "48":"y",
  386. "49":"y",
  387. "50":"y",
  388. "51":"y",
  389. "52":"y",
  390. "53":"y",
  391. "54":"y",
  392. "55":"y",
  393. "56":"y",
  394. "57":"y",
  395. "58":"y",
  396. "60":"y",
  397. "62":"y",
  398. "63":"y",
  399. "64":"y",
  400. "65":"y",
  401. "66":"y",
  402. "67":"y",
  403. "68":"y",
  404. "69":"y",
  405. "70":"y",
  406. "71":"y",
  407. "72":"y",
  408. "73":"y",
  409. "74":"y",
  410. "75":"y",
  411. "76":"y",
  412. "77":"y",
  413. "78":"y",
  414. "79":"y",
  415. "80":"y",
  416. "81":"y",
  417. "82":"y",
  418. "83":"y"
  419. },
  420. "ios_saf":{
  421. "3.2":"n",
  422. "4.0-4.1":"n",
  423. "4.2-4.3":"n",
  424. "5.0-5.1":"n",
  425. "6.0-6.1":"n",
  426. "7.0-7.1":"n",
  427. "8":"n",
  428. "8.1-8.4":"n",
  429. "9.0-9.2":"n",
  430. "9.3":"n",
  431. "10.0-10.2":"n",
  432. "10.3":"n",
  433. "11.0-11.2":"n",
  434. "11.3-11.4":"n",
  435. "12.0-12.1":"n",
  436. "12.2-12.5":"n",
  437. "13.0-13.1":"n",
  438. "13.2":"n",
  439. "13.3":"n",
  440. "13.4-13.7":"n",
  441. "14.0-14.4":"n",
  442. "14.5-14.8":"n",
  443. "15.0-15.1":"y",
  444. "15.2-15.3":"y",
  445. "15.4":"y"
  446. },
  447. "op_mini":{
  448. "all":"n"
  449. },
  450. "android":{
  451. "2.1":"n",
  452. "2.2":"n",
  453. "2.3":"n",
  454. "3":"n",
  455. "4":"n",
  456. "4.1":"n",
  457. "4.2-4.3":"n",
  458. "4.4":"n",
  459. "4.4.3-4.4.4":"n",
  460. "98":"y #4"
  461. },
  462. "bb":{
  463. "7":"n",
  464. "10":"n"
  465. },
  466. "op_mob":{
  467. "10":"p",
  468. "11":"p",
  469. "11.1":"p",
  470. "11.5":"p",
  471. "12":"p",
  472. "12.1":"y",
  473. "64":"y #4"
  474. },
  475. "and_chr":{
  476. "98":"y #4"
  477. },
  478. "and_ff":{
  479. "96":"n"
  480. },
  481. "ie_mob":{
  482. "10":"y",
  483. "11":"y"
  484. },
  485. "and_uc":{
  486. "12.12":"n"
  487. },
  488. "samsung":{
  489. "4":"n",
  490. "5.0-5.4":"n",
  491. "6.2-6.4":"n",
  492. "7.2-7.4":"n",
  493. "8.2":"n",
  494. "9.2":"n",
  495. "10.1":"n",
  496. "11.1-11.2":"n",
  497. "12.0":"n",
  498. "13.0":"n",
  499. "14.0":"n",
  500. "15.0":"n",
  501. "16.0":"n"
  502. },
  503. "and_qq":{
  504. "10.4":"y"
  505. },
  506. "baidu":{
  507. "7.12":"n"
  508. },
  509. "kaios":{
  510. "2.5":"n"
  511. }
  512. },
  513. "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 Element attached to the DOM _and within the viewport_ of the browser for `.setDragImage`.",
  514. "notes_by_num":{
  515. "1":"Partial support refers to no support for the `dataTransfer.files` or `.types` objects",
  516. "2":"Partial support refers to not supporting `.setDragImage`",
  517. "3":"Partial support refers to limited supported formats for `dataTransfer.setData`/`getData`.",
  518. "4":"Not supported in Chromium browsers on Android 6 or older."
  519. },
  520. "usage_perc_y":87.16,
  521. "usage_perc_a":0.79,
  522. "ucprefix":false,
  523. "parent":"",
  524. "keywords":"draganddrop, draggable",
  525. "ie_id":"",
  526. "chrome_id":"",
  527. "firefox_id":"",
  528. "webkit_id":"",
  529. "shown":true
  530. }