ClipboardEvent.clipboardData
's value is a DataTransfer
, but DataTransfer.files
isn't cross browser
#18140
Labels
data:api
Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
By looking at compatibility data for
DataTransfer.files
andClipboardEvent.clipboardData
, developers might think copying a file in their operating system's file explorer and pasting it into a web application would work universally, since the support tables are all green. In practice, the code below is Chrome-only, though:On Safari, with an image file on the clipboard, the Paste action is grayed out:
On Chrome, with an image file on the clipboard, the Paste action is enabled:
It would be great if the support situation for
ClipboardEvent.clipboardData.files
could be reflected more accurately.The text was updated successfully, but these errors were encountered: