暂无描述

clipboard.json 7.6KB

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