Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing feature: Clipboard API supported mimetypes #5430

Open
Dreamsorcerer opened this issue May 14, 2020 · 0 comments
Open

Missing feature: Clipboard API supported mimetypes #5430

Dreamsorcerer opened this issue May 14, 2020 · 0 comments

Comments

@Dreamsorcerer
Copy link

Under the clipboard API, it says that Chrome fully supports the clipboard.write() method, and Firefox supports it behind a flag.

However, if I try to write a "text/html" snippet, it gives an error that it is unsupported. So, I'd suggest a new section, or expansion of the comments to include information about which mimetypes are supported.

Furthermore, I am also confused, because Firefox and Chrome have different interfaces for this function, which suggests that 1 or both of them don't fully support this API correctly.
i.e. Firefox requires a DataTransfer object, while Chrome requires an array of ClipboardItem objects. These are incompatible interfaces. (It looks to me like Chrome is correctly following the W3 spec, and Firefox still needs to finish implementing this).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants