W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: before/after editaction

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Thu, 20 Oct 2011 19:02:17 -0700
Message-ID: <CABNRm63XMp_SJfPaSnkgUBcUdsSRLw3CygtSMuwr50smGgyanQ@mail.gmail.com>
To: Ojan Vafai <ojan@chromium.org>
Cc: Jonas Sicking <jonas@sicking.cc>, Darin Adler <darin@apple.com>, public-webapps <public-webapps@w3.org>
On Thu, Oct 20, 2011 at 6:57 PM, Ryosuke Niwa <rniwa@webkit.org> wrote:

> I don't think we can make such an assumption. People mutate DOM on input
> event all the time:
> http://codesearch.google.com/#search/&q=%20oninput=&type=cs
>
> Including any DOM mutations in the on-going transaction would mean that UA
> will end up trying to revert those changes since the entire document shares
> the one undo scope by default, and may end up mutation DOM in unexpected
> ways.
>

I'll add that, most significantly, when reverting DOM changes made in the
input event listener fails, the UA may end up aborting the undo/redo process
before even get to revert the actual DOM changes made by the user editing
action or execCommand.

- Ryosuke
Received on Friday, 21 October 2011 02:03:12 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:48 GMT