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

[whatwg] Undoscopes inside an editable region should ignored

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Thu, 13 Oct 2011 19:19:56 -0700
Message-ID: <CABNRm62TBKbw40W-L99L7Brgf1osh6p5uui_Ewd=EPLHtivvrw@mail.gmail.com>
On Thu, Oct 13, 2011 at 7:06 PM, Ojan Vafai <ojan at chromium.org> wrote:
> When an element with an undoscope goes from editable to non-editable, does
> it then get a fresh undo stack? When it goes from non-editable to editable
> does it lose it's undo stack? I think the answer to both those questions
> should be yes, but I'm not 100% convinced.

For WebKit, this would mean that we must do style re-calc before each DOM
mutation because we won't be able to determine to which undo scope a node
belongs otherwise. I'm really sad about it but we don't seem to have a much
choice here.

- Ryosuke
Received on Thursday, 13 October 2011 19:19:56 UTC

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