clipboard.json 6.7 KB

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