- From: Rafael Weinstein <rafaelw@google.com>
- Date: Tue, 6 Dec 2011 06:13:34 -0800
- To: Ryosuke Niwa <rniwa@webkit.org>
- Cc: Anne van Kesteren <annevk@opera.com>, "www-dom@w3.org" <www-dom@w3.org>, Olli Pettay <Olli.Pettay@helsinki.fi>, Adam Klein <adamk@chromium.org>, Ojan Vafai <ojan@chromium.org>
On Mon, Dec 5, 2011 at 10:03 AM, Ryosuke Niwa <rniwa@webkit.org> wrote: > 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/ >> (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 > > > 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 > default). This may turn out to be a reasonable tradeoff to make, but I think we need to base our decision on data & experience from experimental implementations. As chance has it: the chromium port of webkit has enabled this feature in trunk and it should arrive on the Canary & Dev channels before long. > >> 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 Tuesday, 6 December 2011 14:14:05 UTC