[w3c/editing] queryCommandSupported('paste') clarification for Chrome (#167)

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')?



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/167

Received on Monday, 21 August 2017 22:33:18 UTC