W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2011

Re: [dom] Mutation Observers

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Mon, 5 Dec 2011 10:03:06 -0800
Message-ID: <CABNRm63KnESPF8TAQqmF5ZtesRmVyZg4gWofecZp7PDrKLc2mg@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: "www-dom@w3.org" <www-dom@w3.org>, Olli Pettay <Olli.Pettay@helsinki.fi>, rafaelw@chromium.org, Adam Klein <adamk@chromium.org>, Ojan Vafai <ojan@chromium.org>
On Mon, Dec 5, 2011 at 7:32 AM, Anne van Kesteren <annevk@opera.com> wrote:

> As discussed mutation observers would be best defined in the DOM. The DOM
> is discussed on www-dom@w3.org: http://lists.w3.org/Archives/**
> Public/www-dom/ <http://lists.w3.org/Archives/Public/www-dom/> (I bcc'd
> public-webapps just in case anyone missed this.)

Great! Thanks for doing this. I'm thrilled to push this feature forward in
the spec.

I think I now defined the last hook needed for mutation observers, "replace
> all". The hooks related to tree mutations are defined here:
> http://dvcs.w3.org/hg/domcore/**raw-file/tip/Overview.html#**
> mutation-algorithms<http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#mutation-algorithms>

You also need to list mutations to attributes although it'll be quite
trivial given that we're not making prefix changes in setAttributeNS.

I'm not sure what the current status of mutation observers is, but one open
> question was whether we should special case the "style" attribute due to it
> being frequently mutated. Has any data been gathered on that already?

Yes, I think we want to special-case style attribute (exclude it by

I have another question, if we expect a lot of mutations, should we split
> MutationRecord for the attribute/characterData versus childList case?
> There's a bunch of members that do not make sense for either of those.

What is the benefit of the split?

- Ryosuke
Received on Monday, 5 December 2011 18:03:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:59 UTC