W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2011

[whatwg] [editing] HTML Editing APIs specification ready for implementer feedback

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Thu, 28 Jul 2011 13:31:55 -0700
Message-ID: <CABNRm62uCT5KrkwzLT5aXX5V4WdAjG6hLyiyqVnkVRP6fuD+mw@mail.gmail.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:35 UTC