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

Please add supportedFormats property #97

Open
WalterYongtaoWang opened this issue Sep 4, 2019 · 1 comment
Open

Please add supportedFormats property #97

WalterYongtaoWang opened this issue Sep 4, 2019 · 1 comment

Comments

@WalterYongtaoWang
Copy link

For now, implementation of Chromium supports text/palin, image/png, and text/html is on the way (probably more in the future, like image/jpeg etc).
https://bugs.chromium.org/p/chromium/issues/detail?id=931839#c17

We'll need this supportedFormats property (like the video element) to tell which format is supported, so polyfill can fall back to execCommand or other methods.

I'll be really difficult for that without this.

@dway123
Copy link

dway123 commented Sep 4, 2019

This supportedFormats property seems to be for the navigator.clipboard. While currently all formats supported for read are also supported for write, we may want to consider having some supportedReadFormats and supportedWriteFormats for the sake of flexibility. Additionally, there is a proposal for Raw Clipboard Access, which should presumably support any arbitrary format, so this property should be clear it's intended for sanitized formats (aka the existing Clipboard API).

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

No branches or pull requests

2 participants