[whatwg] [editing] HTML Editing APIs specification ready for implementer feedback
Ryosuke Niwa
rniwa at webkit.org
Thu Jul 28 13:31:55 PDT 2011
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
More information about the whatwg
mailing list