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

[whatwg] Feedback on UndoManager spec

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 26 Oct 2011 20:21:04 -0700
Message-ID: <CA+c2ei9ekP7FAzEkOXktNnmQA1pZc=A9fT0mZZfqqToESnC_vQ@mail.gmail.com>
On Wed, Oct 26, 2011 at 10:13 AM, Ryosuke Niwa <rniwa at webkit.org> wrote:
>> 2) What happens if you have an Element with the undoscope attribute
>> that doesn't descend from a Document? ?Does undo management make any
>> sense in that case, or should the undoscope attribute have no effect
>> for detached elements?
>
> This is a debatable point. On one hand, allowing a node with undoManager to
> be moved to another location in DOM seems nice but on the other hand, being
> able to move a node with undoManager to a different document will be
> problematic. And semantically, moving undoManager makes very little sense.

Why is it problematic to move an element with an undoManager from one
document to another. If all the data that the undomanager needs lives
inside the undoManager object itself, it seems quite possible to move
between documents or even interact with while not inside a document.

I agree that moving a undoManager between elements doesn't make much
sense semantically though (even though even that would technically be
implementable).

/ Jonas
Received on Wednesday, 26 October 2011 20:21:04 UTC

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