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

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

From: Alex Vincent <ajvincent@gmail.com>
Date: Thu, 1 Sep 2011 11:55:03 -0700
Message-ID: <CAEZ8441Pnd-Fom+-kzoQL1mn-=VjHdCY1cwDAWu9yX=Rt-Uv2A@mail.gmail.com>
On Thu, Sep 1, 2011 at 11:36 AM, Ryosuke Niwa <rniwa at webkit.org> wrote:

> On Thu, Sep 1, 2011 at 6:26 AM, Alex Vincent <ajvincent at gmail.com> wrote:
>
>>   1. I think we should start writing a test suite, for two reasons.
>>  First,
>>
>>   to get some idea how this works in practice, with a reference
>> implementation
>>   in JavaScript.  That will help us iron out some of the API debates we've
>>   been having (reapply, specifically).  Second, a test suite can help all
>> the
>>   implementers implement the same thing.
>>
>
> Implementing it in JavaScript will be somewhat challenging because
> managed/automatic transactions need to keep track of all changes made by a
> function it's calling.  It'll require a heavy use of mutation events (and
> they're going away!)
>
>
Not necessarily.  We can use a DOM implemented in JavaScript, a la
http://www.envjs.com/.  That wouldn't require mutation events, since we
could customize the DOM code before running it.

-- 
"The first step in confirming there is a bug in someone else's work is
confirming there are no bugs in your own."
-- Alexander J. Vincent, June 30, 2001
Received on Thursday, 1 September 2011 11:55:03 UTC

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