- From: Ryosuke Niwa <rniwa@webkit.org>
- Date: Thu, 28 Jul 2011 13:31:55 -0700
On Thu, Jul 28, 2011 at 1:17 PM, Aryeh Gregor <Simetrical+w3c at gmail.com>wrote: > > > 3.3: The return value of queryCommandEnable depends on beforecut, > > beforecopy, and beforepaste events and selection state in WebKit; WebKit > > returns false if default actions are prevented in those events or > selection > > is not a range. Firefox 5 appears to do the same for selection but > doesn't > > seem to fire beforecut, beforecopy, and beforepaste. > > How does WebKit know if those events will be prevented or not, without > running the handlers? If the page runs queryCommandEnabled(), nothing > actually happened, so surely WebKit doesn't fire any events? Also, > are you only talking about the cut/copy/paste commands, or other > commands too? > WebKit fires those events :( I don't know why we do that. I think it's a WebKit bug but I'm just pointing that out in the case there are some websites out there that depends on this quirky behavior. Just cut/copy/paste for now as far as I know. - Ryosuke
Received on Thursday, 28 July 2011 13:31:55 UTC