-
Notifications
You must be signed in to change notification settings - Fork 40
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
queryCommandSupported('paste') clarification for Chrome #167
Comments
This is just a bug in Chrome's implementation. Since Chrome doesn't allow |
We did discuss this at the meeting today:
|
@yosinch Please reopen if it still does not seem clear. |
Thanks Johannes. The statement is clear for me. |
Building an HTML5 application with clipboard support, I intended to use queryCommandSupported to disable cut, copy, and paste buttons if they were not supported. This worked fine in all browsers except for Chrome, which always returns true for all 3 commands, even if they are not "supported."
In Chrome 61, even though queryCommandSupported('paste') returns true, document.execCommand('paste') will always return false and do nothing. It does execute the paste command if executed from a Chrome extension though.
I reported this to the Chrome dev team and they would like some clarification because they feel the spec is ambiguous.
https://bugs.chromium.org/p/chromium/issues/detail?id=757140#c4
Could someone please clarify whether Chrome is doing what the spec intends by returning true at all times from queryCommandSupported('paste')?
The text was updated successfully, but these errors were encountered: