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

On Tue, Aug 30, 2011 at 10:49 PM, Anne van Kesteren <annevk at opera.com> wrote:
> On Tue, 30 Aug 2011 21:04:09 +0200, Ryosuke Niwa <rniwa at webkit.org> wrote:
>>
>> I've updated my document: https://rniwa.com/editing/undomanager.html
>>
>> I clarified which object it should return and also moved undoManager idl
>> attribute from Element/Document to Node as we have agreed.
>
> I missed this agreement. In DOM Core we try to avoid putting things on Node
> when it only needs to be available on a few node types. Does it make sense
> for this to be exposed on Comment, ProcessingInstruction, Text,
> DocumentType, etc. now?
>
> If it does indeed make sense the non-normative text also needs to be updated
> as it still talks about element and document.

Makes sense to me. Having .undoManager on Element and Document seems fine.

/ Jonas

Received on Wednesday, 31 August 2011 09:56:29 UTC