clipboard.json 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. {
  2. "title":"Synchronous 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. "63":"a #6",
  108. "64":"a #6",
  109. "65":"a #6",
  110. "66":"a #6",
  111. "67":"a #6",
  112. "68":"a #6"
  113. },
  114. "chrome":{
  115. "4":"n",
  116. "5":"n",
  117. "6":"n",
  118. "7":"n",
  119. "8":"n",
  120. "9":"n",
  121. "10":"n",
  122. "11":"n",
  123. "12":"n",
  124. "13":"a #3 #5",
  125. "14":"a #3 #5",
  126. "15":"a #3 #5",
  127. "16":"a #3 #5",
  128. "17":"a #3 #5",
  129. "18":"a #3 #5",
  130. "19":"a #3 #5",
  131. "20":"a #3 #5",
  132. "21":"a #3 #5",
  133. "22":"a #3 #5",
  134. "23":"a #3 #5",
  135. "24":"a #3 #5",
  136. "25":"a #3 #5",
  137. "26":"a #3 #5",
  138. "27":"a #3 #5",
  139. "28":"a #3 #5",
  140. "29":"a #3 #5",
  141. "30":"a #3 #5",
  142. "31":"a #3 #5",
  143. "32":"a #3 #5",
  144. "33":"a #3 #5",
  145. "34":"a #3 #5",
  146. "35":"a #3 #5",
  147. "36":"a #3 #5",
  148. "37":"a #3 #5",
  149. "38":"a #3 #5",
  150. "39":"a #3 #5",
  151. "40":"a #3 #5",
  152. "41":"a #3 #5",
  153. "42":"a #3 #5",
  154. "43":"a #5 #7",
  155. "44":"a #5 #7",
  156. "45":"a #5 #7",
  157. "46":"a #5 #7",
  158. "47":"a #5 #7",
  159. "48":"a #5 #7",
  160. "49":"a #5 #7",
  161. "50":"a #5 #7",
  162. "51":"a #5 #7",
  163. "52":"a #5 #7",
  164. "53":"a #5 #7",
  165. "54":"a #5 #7",
  166. "55":"a #5 #7",
  167. "56":"a #5 #7",
  168. "57":"a #5 #7",
  169. "58":"a #5 #7",
  170. "59":"a #5 #7",
  171. "60":"a #5 #7",
  172. "61":"a #5 #7",
  173. "62":"a #5 #7",
  174. "63":"a #5 #7",
  175. "64":"a #5 #7",
  176. "65":"a #5 #7",
  177. "66":"a #5 #7",
  178. "67":"a #5 #7",
  179. "68":"a #5 #7",
  180. "69":"a #5 #7",
  181. "70":"a #5 #7",
  182. "71":"a #5 #7",
  183. "72":"a #5 #7",
  184. "73":"a #5 #7",
  185. "74":"a #5 #7",
  186. "75":"a #5 #7",
  187. "76":"a #5 #7"
  188. },
  189. "safari":{
  190. "3.1":"u",
  191. "3.2":"u",
  192. "4":"a #2 #3 #5",
  193. "5":"a #2 #3 #5",
  194. "5.1":"a #2 #3 #5",
  195. "6":"a #2 #3 #5",
  196. "6.1":"a #2 #3 #5",
  197. "7":"a #2 #3 #5",
  198. "7.1":"a #2 #3 #5",
  199. "8":"a #2 #3 #5",
  200. "9":"a #2 #3 #5",
  201. "9.1":"a #2 #3 #5",
  202. "10":"a #2 #5",
  203. "10.1":"a #2 #5",
  204. "11":"a #2 #5",
  205. "11.1":"a #2 #5",
  206. "12":"y",
  207. "12.1":"y",
  208. "TP":"y"
  209. },
  210. "opera":{
  211. "9":"n",
  212. "9.5-9.6":"n",
  213. "10.0-10.1":"n",
  214. "10.5":"n",
  215. "10.6":"n",
  216. "11":"n",
  217. "11.1":"n",
  218. "11.5":"n",
  219. "11.6":"n",
  220. "12":"u",
  221. "12.1":"a #3",
  222. "15":"a #3 #5",
  223. "16":"a #3 #5",
  224. "17":"a #3 #5",
  225. "18":"a #3 #5",
  226. "19":"a #3 #5",
  227. "20":"a #3 #5",
  228. "21":"a #3 #5",
  229. "22":"a #3 #5",
  230. "23":"a #3 #5",
  231. "24":"a #3 #5",
  232. "25":"a #3 #5",
  233. "26":"a #3 #5",
  234. "27":"a #3 #5",
  235. "28":"a #3 #5",
  236. "29":"a #3 #5",
  237. "30":"a #5 #7",
  238. "31":"a #5 #7",
  239. "32":"a #5 #7",
  240. "33":"a #5 #7",
  241. "34":"a #5 #7",
  242. "35":"a #5 #7",
  243. "36":"a #5 #7",
  244. "37":"a #5 #7",
  245. "38":"a #5 #7",
  246. "39":"a #5 #7",
  247. "40":"a #5 #7",
  248. "41":"a #5 #7",
  249. "42":"a #5 #7",
  250. "43":"a #5 #7",
  251. "44":"a #5 #7",
  252. "45":"a #5 #7",
  253. "46":"a #5 #7",
  254. "47":"a #5 #7",
  255. "48":"a #5 #7",
  256. "49":"a #5 #7",
  257. "50":"a #5 #7",
  258. "51":"a #5 #7",
  259. "52":"a #5 #7",
  260. "53":"a #5 #7",
  261. "54":"a #5 #7",
  262. "55":"a #5 #7",
  263. "56":"a #5 #7",
  264. "57":"a #5 #7",
  265. "58":"a #5 #7"
  266. },
  267. "ios_saf":{
  268. "3.2":"n",
  269. "4.0-4.1":"n",
  270. "4.2-4.3":"n",
  271. "5.0-5.1":"a #2 #3 #5",
  272. "6.0-6.1":"a #2 #3 #5",
  273. "7.0-7.1":"a #2 #3 #5",
  274. "8":"a #2 #3 #5",
  275. "8.1-8.4":"a #2 #3 #5",
  276. "9.0-9.2":"a #2 #3 #5",
  277. "9.3":"a #2 #3 #5",
  278. "10.0-10.2":"a #2 #3 #5",
  279. "10.3":"a #2 #3 #5",
  280. "11.0-11.2":"a #2 #3 #5",
  281. "11.3-11.4":"a #2 #3 #5",
  282. "12.0-12.1":"y",
  283. "12.2":"y"
  284. },
  285. "op_mini":{
  286. "all":"n"
  287. },
  288. "android":{
  289. "2.1":"n",
  290. "2.2":"n",
  291. "2.3":"n",
  292. "3":"n",
  293. "4":"n",
  294. "4.1":"n",
  295. "4.2-4.3":"n",
  296. "4.4":"a #2 #5",
  297. "4.4.3-4.4.4":"a #2 #5",
  298. "67":"a #2 #5"
  299. },
  300. "bb":{
  301. "7":"n",
  302. "10":"a #2 #5"
  303. },
  304. "op_mob":{
  305. "10":"n",
  306. "11":"n",
  307. "11.1":"n",
  308. "11.5":"n",
  309. "12":"n",
  310. "12.1":"u",
  311. "46":"a #4 #5"
  312. },
  313. "and_chr":{
  314. "71":"a #5"
  315. },
  316. "and_ff":{
  317. "64":"a #4"
  318. },
  319. "ie_mob":{
  320. "10":"n",
  321. "11":"n"
  322. },
  323. "and_uc":{
  324. "11.8":"n"
  325. },
  326. "samsung":{
  327. "4":"a #2 #5",
  328. "5.0-5.4":"a #5",
  329. "6.2-6.4":"a #5",
  330. "7.2-7.4":"a #5",
  331. "8.2":"a #5"
  332. },
  333. "and_qq":{
  334. "1.2":"a #5 #7"
  335. },
  336. "baidu":{
  337. "7.12":"a #5"
  338. }
  339. },
  340. "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.",
  341. "notes_by_num":{
  342. "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.",
  343. "2":"Only fires `copy` event on a valid selection and only `cut` and `paste` in focused editable fields.",
  344. "3":"Only supports OS clipboard reading/writing via shortcut keys, not through `document.execCommand()`.",
  345. "4":"Only supports `paste` event (on focused editable field).",
  346. "5":"Does not support the `ClipboardEvent` constructor",
  347. "6":"Supports `cut` & `copy` events without a focused editable field, but not `paste` (presumably for security reasons)",
  348. "7":"Supports `cut` & `copy` events without a focused editable field, but does not fire `paste` with `document.execCommand('paste')` "
  349. },
  350. "usage_perc_y":10.33,
  351. "usage_perc_a":81.87,
  352. "ucprefix":false,
  353. "parent":"",
  354. "keywords":"cut,copy,paste,clipboarddata,clipboardevent",
  355. "ie_id":"clipboardapi",
  356. "chrome_id":"",
  357. "firefox_id":"",
  358. "webkit_id":"",
  359. "shown":true
  360. }