Re: [clipboard-apis] Should queryCommandEnabled(cut|copy|paste) trigger onbefore* events? (#4)

Apologies - I'm struggling to follow the user case for this, when / how would these events be used?

Gut instinct says than preventingDefault / returning false in an event should result in the enabledness check to return false, not true?

Regarding 2.) - I would prefer that queryCommandEnabled returns true when execCommand is going to work. Otherwise, if it returns true when execCommand fails, whats the point of the developer ever checking it? Just check queryCommandSupported and try execCommand and see what happens.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/4#issuecomment-108820015

Received on Thursday, 4 June 2015 10:05:42 UTC