[whatwg] Fixing undo on the Web - UndoManager and Transaction
Alex Vincent
ajvincent at gmail.com
Thu Sep 1 11:55:03 PDT 2011
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
More information about the whatwg
mailing list