dragndrop.json 11 KB

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