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

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

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 03 Aug 2011 23:46:04 +0200
Message-ID: <op.vznqq2gl64w2qv@annevk-macbookpro.local>
On Wed, 03 Aug 2011 23:40:27 +0200, Ryosuke Niwa <rniwa at webkit.org> wrote:
> On Wed, Aug 3, 2011 at 2:36 PM, Anne van Kesteren <annevk at opera.com>  
> wrote:
>> If they are identical I think it is even more clear we should remove the
>> one on Document as it's redundant :-)
> Mn... but I think it's more convenient to be able to access undoManager  
> from document.  Also, what if there were no body?  undoManager needs to  
> exist in such cases as well (e.g. designMode).

<body> is not the root element. And if there is no root element there is  
nothing visible on the screen so I am not sure it matters if things are  
lost in that case. That is such an edge case and not really worth having  
an additional member on Document for.

Anne van Kesteren
Received on Wednesday, 3 August 2011 14:46:04 UTC

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