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

[whatwg] Fixing undo on the Web - UndoManager and Transaction

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Wed, 27 Jul 2011 21:54:06 -0700
Message-ID: <CABNRm609JSHpx-N_DyUg8J_0ak-boM5bk2U0mj6sCq__OaeAFQ@mail.gmail.com>
On Wed, Jul 27, 2011 at 8:34 PM, Alex Vincent <ajvincent at gmail.com> wrote:
> I'd like to take a look at this and be very closely involved in this
> specification.  About a month ago, I wrote this:
> http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-April/031191.html

Oh, yes.  I do remember your post!  I think my proposal address most of your

Also see https://bugzilla.mozilla.org/show_bug.cgi?id=617532 - where Mozilla
> is considering their own API proposals.

Jonas' last proposal is very similar to the one I proposed except there are
two types of transactions in my proposal - ManualTransaction and
ManagedTransaction.  The rationale for having two types of transactions is
to let the Web app pick whether UA or script should implement undo/redo.

One use case I've envisioned is an undo popup menu, where each item of the
> undo stack has an actual label to go with it, describing the transaction.
> Then you could easily see how many items you wanted to go back!

My proposal addresses this use case.  See "label" property on

- Ryosuke
Received on Wednesday, 27 July 2011 21:54:06 UTC

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