clipboard.json 7.3 KB

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