clipboard.json 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. {
  2. "title":"Clipboard API",
  3. "description":"API to provide copy, cut and paste events as well as provide access to the OS clipboard.",
  4. "spec":"https://www.w3.org/TR/clipboard-apis/",
  5. "status":"wd",
  6. "links":[
  7. {
  8. "url":"https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent",
  9. "title":"MDN Web Docs - ClipboardEvent"
  10. },
  11. {
  12. "url":"https://www.lucidchart.com/techblog/2014/12/02/definitive-guide-copying-pasting-javascript/",
  13. "title":"Guide on cross-platform clipboard access"
  14. }
  15. ],
  16. "bugs":[
  17. {
  18. "description":"Before Firefox 41, `queryCommandEnabled` and `execCommand` with arguments `cut`, `copy` or `paste` would throw errors instead of return `false`."
  19. }
  20. ],
  21. "categories":[
  22. "JS API"
  23. ],
  24. "stats":{
  25. "ie":{
  26. "5.5":"a #1 #2 #5",
  27. "6":"a #1 #2 #5",
  28. "7":"a #1 #2 #5",
  29. "8":"a #1 #2 #5",
  30. "9":"a #1 #2 #5",
  31. "10":"a #1 #2 #5",
  32. "11":"a #1 #2 #5"
  33. },
  34. "edge":{
  35. "12":"a #1 #2 #5",
  36. "13":"a #1 #2 #5",
  37. "14":"a #1 #2 #5",
  38. "15":"a #1 #2 #5",
  39. "16":"a #1 #2 #5",
  40. "17":"a #2",
  41. "18":"a #2"
  42. },
  43. "firefox":{
  44. "2":"n",
  45. "3":"n",
  46. "3.5":"n",
  47. "3.6":"n",
  48. "4":"n",
  49. "5":"n",
  50. "6":"n",
  51. "7":"n",
  52. "8":"n",
  53. "9":"n",
  54. "10":"n",
  55. "11":"n",
  56. "12":"n",
  57. "13":"n",
  58. "14":"n",
  59. "15":"n",
  60. "16":"n",
  61. "17":"n",
  62. "18":"n",
  63. "19":"n",
  64. "20":"n",
  65. "21":"n",
  66. "22":"a #2 #3",
  67. "23":"a #2 #3",
  68. "24":"a #2 #3",
  69. "25":"a #2 #3",
  70. "26":"a #2 #3",
  71. "27":"a #2 #3",
  72. "28":"a #2 #3",
  73. "29":"a #2 #3",
  74. "30":"a #2 #3",
  75. "31":"a #2 #3",
  76. "32":"a #2 #3",
  77. "33":"a #2 #3",
  78. "34":"a #2 #3",
  79. "35":"a #2 #3",
  80. "36":"a #2 #3",
  81. "37":"a #2 #3",
  82. "38":"a #2 #3",
  83. "39":"a #2 #3",
  84. "40":"a #2 #3",
  85. "41":"a #6",
  86. "42":"a #6",
  87. "43":"a #6",
  88. "44":"a #6",
  89. "45":"a #6",
  90. "46":"a #6",
  91. "47":"a #6",
  92. "48":"a #6",
  93. "49":"a #6",
  94. "50":"a #6",
  95. "51":"a #6",
  96. "52":"a #6",
  97. "53":"a #6",
  98. "54":"a #6",
  99. "55":"a #6",
  100. "56":"a #6",
  101. "57":"a #6",
  102. "58":"a #6",
  103. "59":"a #6",
  104. "60":"a #6",
  105. "61":"a #6",
  106. "62":"a #6"
  107. },
  108. "chrome":{
  109. "4":"n",
  110. "5":"n",
  111. "6":"n",
  112. "7":"n",
  113. "8":"n",
  114. "9":"n",
  115. "10":"n",
  116. "11":"n",
  117. "12":"n",
  118. "13":"a #3 #5",
  119. "14":"a #3 #5",
  120. "15":"a #3 #5",
  121. "16":"a #3 #5",
  122. "17":"a #3 #5",
  123. "18":"a #3 #5",
  124. "19":"a #3 #5",
  125. "20":"a #3 #5",
  126. "21":"a #3 #5",
  127. "22":"a #3 #5",
  128. "23":"a #3 #5",
  129. "24":"a #3 #5",
  130. "25":"a #3 #5",
  131. "26":"a #3 #5",
  132. "27":"a #3 #5",
  133. "28":"a #3 #5",
  134. "29":"a #3 #5",
  135. "30":"a #3 #5",
  136. "31":"a #3 #5",
  137. "32":"a #3 #5",
  138. "33":"a #3 #5",
  139. "34":"a #3 #5",
  140. "35":"a #3 #5",
  141. "36":"a #3 #5",
  142. "37":"a #3 #5",
  143. "38":"a #3 #5",
  144. "39":"a #3 #5",
  145. "40":"a #3 #5",
  146. "41":"a #3 #5",
  147. "42":"a #3 #5",
  148. "43":"a #5 #7",
  149. "44":"a #5 #7",
  150. "45":"a #5 #7",
  151. "46":"a #5 #7",
  152. "47":"a #5 #7",
  153. "48":"a #5 #7",
  154. "49":"a #5 #7",
  155. "50":"a #5 #7",
  156. "51":"a #5 #7",
  157. "52":"a #5 #7",
  158. "53":"a #5 #7",
  159. "54":"a #5 #7",
  160. "55":"a #5 #7",
  161. "56":"a #5 #7",
  162. "57":"a #5 #7",
  163. "58":"a #5 #7",
  164. "59":"a #5 #7",
  165. "60":"a #5 #7",
  166. "61":"a #5 #7",
  167. "62":"a #5 #7",
  168. "63":"a #5 #7",
  169. "64":"a #5 #7",
  170. "65":"a #5 #7",
  171. "66":"a #5 #7",
  172. "67":"a #5 #7",
  173. "68":"a #5 #7",
  174. "69":"a #5 #7"
  175. },
  176. "safari":{
  177. "3.1":"u",
  178. "3.2":"u",
  179. "4":"a #2 #3 #5",
  180. "5":"a #2 #3 #5",
  181. "5.1":"a #2 #3 #5",
  182. "6":"a #2 #3 #5",
  183. "6.1":"a #2 #3 #5",
  184. "7":"a #2 #3 #5",
  185. "7.1":"a #2 #3 #5",
  186. "8":"a #2 #3 #5",
  187. "9":"a #2 #3 #5",
  188. "9.1":"a #2 #3 #5",
  189. "10":"a #2 #5",
  190. "10.1":"a #2 #5",
  191. "11":"a #2 #5",
  192. "11.1":"a #2 #5",
  193. "TP":"a #2 #5"
  194. },
  195. "opera":{
  196. "9":"n",
  197. "9.5-9.6":"n",
  198. "10.0-10.1":"n",
  199. "10.5":"n",
  200. "10.6":"n",
  201. "11":"n",
  202. "11.1":"n",
  203. "11.5":"n",
  204. "11.6":"n",
  205. "12":"u",
  206. "12.1":"a #3",
  207. "15":"a #3 #5",
  208. "16":"a #3 #5",
  209. "17":"a #3 #5",
  210. "18":"a #3 #5",
  211. "19":"a #3 #5",
  212. "20":"a #3 #5",
  213. "21":"a #3 #5",
  214. "22":"a #3 #5",
  215. "23":"a #3 #5",
  216. "24":"a #3 #5",
  217. "25":"a #3 #5",
  218. "26":"a #3 #5",
  219. "27":"a #3 #5",
  220. "28":"a #3 #5",
  221. "29":"a #3 #5",
  222. "30":"a #5 #7",
  223. "31":"a #5 #7",
  224. "32":"a #5 #7",
  225. "33":"a #5 #7",
  226. "34":"a #5 #7",
  227. "35":"a #5 #7",
  228. "36":"a #5 #7",
  229. "37":"a #5 #7",
  230. "38":"a #5 #7",
  231. "39":"a #5 #7",
  232. "40":"a #5 #7",
  233. "41":"a #5 #7",
  234. "42":"a #5 #7",
  235. "43":"a #5 #7",
  236. "44":"a #5 #7",
  237. "45":"a #5 #7",
  238. "46":"a #5 #7",
  239. "47":"a #5 #7",
  240. "48":"a #5 #7",
  241. "49":"a #5 #7",
  242. "50":"a #5 #7",
  243. "51":"a #5 #7",
  244. "52":"a #5 #7"
  245. },
  246. "ios_saf":{
  247. "3.2":"n",
  248. "4.0-4.1":"n",
  249. "4.2-4.3":"n",
  250. "5.0-5.1":"a #2 #3 #5",
  251. "6.0-6.1":"a #2 #3 #5",
  252. "7.0-7.1":"a #2 #3 #5",
  253. "8":"a #2 #3 #5",
  254. "8.1-8.4":"a #2 #3 #5",
  255. "9.0-9.2":"a #2 #3 #5",
  256. "9.3":"a #2 #3 #5",
  257. "10.0-10.2":"a #2 #3 #5",
  258. "10.3":"a #2 #3 #5",
  259. "11.0-11.2":"a #2 #3 #5",
  260. "11.3":"a #2 #3 #5"
  261. },
  262. "op_mini":{
  263. "all":"n"
  264. },
  265. "android":{
  266. "2.1":"n",
  267. "2.2":"n",
  268. "2.3":"n",
  269. "3":"n",
  270. "4":"n",
  271. "4.1":"n",
  272. "4.2-4.3":"n",
  273. "4.4":"a #2 #5",
  274. "4.4.3-4.4.4":"a #2 #5",
  275. "62":"a #2 #5"
  276. },
  277. "bb":{
  278. "7":"n",
  279. "10":"a #2 #5"
  280. },
  281. "op_mob":{
  282. "10":"n",
  283. "11":"n",
  284. "11.1":"n",
  285. "11.5":"n",
  286. "12":"n",
  287. "12.1":"u",
  288. "37":"a #4 #5"
  289. },
  290. "and_chr":{
  291. "66":"a #5"
  292. },
  293. "and_ff":{
  294. "57":"a #4"
  295. },
  296. "ie_mob":{
  297. "10":"n",
  298. "11":"n"
  299. },
  300. "and_uc":{
  301. "11.8":"n"
  302. },
  303. "samsung":{
  304. "4":"a #2 #5",
  305. "5":"a #5",
  306. "6.2":"a #5"
  307. },
  308. "and_qq":{
  309. "1.2":"a #5 #7"
  310. },
  311. "baidu":{
  312. "7.12":"a #5"
  313. }
  314. },
  315. "notes":"Internet Explorer will display a security prompt for access to the OS clipboard.\r\n\r\nChrome 42+, Opera 29+ and Firefox 41+ support clipboard reading/writing only when part of a user action (click, keydown, etc).\r\n\r\nFirefox 40- users [can enable support](https://developer.mozilla.org/en-US/docs/Midas/Security_preferences) with a security preference setting.",
  316. "notes_by_num":{
  317. "1":"Only supports `Text` and `URL` data types and uses [a non-standard method](http://msdn.microsoft.com/en-us/library/ie/ms535220%28v=vs.85%29.aspx) of interacting with the clipboard.",
  318. "2":"Only fires `copy` event on a valid selection and only `cut` and `paste` in focused editable fields.",
  319. "3":"Only supports OS clipboard reading/writing via shortcut keys, not through `document.execCommand()`.",
  320. "4":"Only supports `paste` event (on focused editable field).",
  321. "5":"Does not support the `ClipboardEvent` constructor",
  322. "6":"Supports `cut` & `copy` events without a focused editable field, but not `paste` (presumably for security reasons)",
  323. "7":"Supports `cut` & `copy` events without a focused editable field, but does not fire `paste` with `document.execCommand('paste')` "
  324. },
  325. "usage_perc_y":0,
  326. "usage_perc_a":86.07,
  327. "ucprefix":false,
  328. "parent":"",
  329. "keywords":"cut,copy,paste,clipboarddata,clipboardevent",
  330. "ie_id":"clipboardapi",
  331. "chrome_id":"",
  332. "firefox_id":"",
  333. "webkit_id":"",
  334. "shown":true
  335. }