clipboard.json 8.1 KB

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