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

On Fri, Oct 28, 2011 at 12:42 AM, Ryosuke Niwa <rniwa at webkit.org> wrote:
> On Fri, Oct 28, 2011 at 12:06 AM, Jonas Sicking <jonas at sicking.cc> wrote:
>>
>> On Thu, Oct 27, 2011 at 9:06 PM, Ryosuke Niwa <rniwa at webkit.org> wrote:
>> > On Thu, Oct 27, 2011 at 6:22 PM, Jonas Sicking <jonas at sicking.cc> wrote:
>> >>
>> >> Wait, the last bullet point doesn't mean that changes to IDL
>> >> properties are in general rolled back, does it? That would be
>> >> extremely hard to implement in general. It also creates all sorts of
>> >> weird behavior. Would you for example want to reset
>> >> HTMLMediaElement.currentTime? And if you set Element.innerHTML back to
>> >> the value it used to be, it will create all node Nodes.
>> >
>> > Definitely not. I'm more than happy to rephrase it if you have a better
>> > way
>> > of describing it.
>>
>> I'm not sure what you are trying to say.
>
> I just want to say DOM state being equal implies nodes are
> pointer-wise?identical.

Ah.

Just say that the *same* node is returned or inserted or whatever. A
node that just looks the same is not the same node.

/ Jonas

Received on Friday, 28 October 2011 13:21:36 UTC