Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-13 Thread Sean Hogan
On 13/10/11 2:33 PM, Ryosuke Niwa wrote: On Wed, Oct 12, 2011 at 8:14 PM, Sean Hogan shogu...@westnet.com.au mailto:shogu...@westnet.com.au wrote: Maybe you can provide concrete examples (i.e. with code snippets, actual instances of use cases, etc...) Actually, it is the

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-13 Thread Ryosuke Niwa
On Wed, Oct 12, 2011 at 7:51 PM, Sean Hogan shogu...@westnet.com.au wrote: It is different to event listeners. The following document.body.**addEventListener(**DOMAttrModified, handler, false); document.getElementById(**target).addEventListener(**DOMAttrModified, preferred_handler,

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-13 Thread Sean Hogan
On 13/10/11 7:58 PM, Ryosuke Niwa wrote: On Thu, Oct 13, 2011 at 1:32 AM, Sean Hogan shogu...@westnet.com.au mailto:shogu...@westnet.com.au wrote: Why do you assume that all other mutation observers should ignore such changes? If there's a library that's automatically syncing

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-13 Thread Olli Pettay
On 10/13/2011 05:51 AM, Sean Hogan wrote: My main reservation towards the proposal is its complexity - it promises a lot and I will be surprised if it is as trivial to implement as you have implied. Even then, I'm expecting that it isn't the improvement (over the status-quo) that everyone is

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-13 Thread Olli Pettay
On 10/13/2011 11:32 AM, Sean Hogan wrote: On 13/10/11 2:33 PM, Ryosuke Niwa wrote: On Wed, Oct 12, 2011 at 8:14 PM, Sean Hogan shogu...@westnet.com.au mailto:shogu...@westnet.com.au wrote: Maybe you can provide concrete examples (i.e. with code snippets, actual instances of use

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-12 Thread Sean Hogan
On 12/10/11 3:26 AM, Tab Atkins Jr. wrote: On Mon, Oct 10, 2011 at 7:51 PM, Sean Hoganshogu...@westnet.com.au wrote: On 24/09/11 7:16 AM, Adam Klein wrote: - Is free of the faults of the existing Mutation Events mechanism (enumerated in detail here:

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-12 Thread Olli Pettay
On 10/12/2011 02:00 PM, Sean Hogan wrote: On 12/10/11 3:26 AM, Tab Atkins Jr. wrote: On Mon, Oct 10, 2011 at 7:51 PM, Sean Hoganshogu...@westnet.com.au wrote: On 24/09/11 7:16 AM, Adam Klein wrote: - Is free of the faults of the existing Mutation Events mechanism (enumerated in detail here:

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-12 Thread Rafael Weinstein
Hi Sean, I find it hard to reason about cases in the abstract. None of the examples you list seem concerning to me (i.e. I believe they can be properly handled), but perhaps it's a failure of my imagination. Maybe you can provide concrete examples (i.e. with code snippets, actual instances of

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-12 Thread Sean Hogan
On 13/10/11 12:34 AM, Olli Pettay wrote: On 10/12/2011 02:00 PM, Sean Hogan wrote: On 12/10/11 3:26 AM, Tab Atkins Jr. wrote: On Mon, Oct 10, 2011 at 7:51 PM, Sean Hoganshogu...@westnet.com.au wrote: On 24/09/11 7:16 AM, Adam Klein wrote: - Is free of the faults of the existing Mutation

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-12 Thread Sean Hogan
On 13/10/11 4:50 AM, Rafael Weinstein wrote: Hi Sean, I find it hard to reason about cases in the abstract. None of the examples you list seem concerning to me (i.e. I believe they can be properly handled), but perhaps it's a failure of my imagination. I didn't say they can't be properly

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-12 Thread Ryosuke Niwa
On Wed, Oct 12, 2011 at 8:14 PM, Sean Hogan shogu...@westnet.com.au wrote: Maybe you can provide concrete examples (i.e. with code snippets, actual instances of use cases, etc...) Actually, it is the proponents of changing the status-quo and of the more complex solution who bear more

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-11 Thread Tab Atkins Jr.
On Mon, Oct 10, 2011 at 7:51 PM, Sean Hogan shogu...@westnet.com.au wrote: On 24/09/11 7:16 AM, Adam Klein wrote: - Is free of the faults of the existing Mutation Events mechanism (enumerated in detail here: http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/0779.html) A simpler

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-10-10 Thread Sean Hogan
On 24/09/11 7:16 AM, Adam Klein wrote: Chromium (myself, Rafael Weinstein, Erik Arvidsson, Ryosuke Niwa) and Mozilla (Olli Pettay, Jonas Sicking) have worked together on a proposal for a replacement for Mutation Events. This proposal represents our best attempt to date at making a set of

CfC: adding Mutation Observers to DOM4; deadline Oct 14 [Was: Re: Mutation Observers: a replacement for DOM Mutation Events]

2011-10-07 Thread Arthur Barstow
On 10/6/11 9:11 AM, ext Arthur Barstow wrote: On 9/30/11 3:40 PM, ext Ms2ger wrote: On 09/29/2011 04:32 PM, Doug Schepers wrote: Hi, Adam- I'm glad to see some progress on a replacement for Mutation Events. Would you be interested in being the editor for this spec? It's already in our

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-30 Thread Ms2ger
On 09/29/2011 04:32 PM, Doug Schepers wrote: Hi, Adam- I'm glad to see some progress on a replacement for Mutation Events. Would you be interested in being the editor for this spec? It's already in our charter, we just need someone to take it up. Olli has offered offlist to be a co-editor, so

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-30 Thread Ojan Vafai
On Fri, Sep 30, 2011 at 12:40 PM, Ms2ger ms2...@gmail.com wrote: On 09/29/2011 04:32 PM, Doug Schepers wrote: Hi, Adam- I'm glad to see some progress on a replacement for Mutation Events. Would you be interested in being the editor for this spec? It's already in our charter, we just need

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-29 Thread Doug Schepers
Hi, Adam- I'm glad to see some progress on a replacement for Mutation Events. Would you be interested in being the editor for this spec? It's already in our charter, we just need someone to take it up. Olli has offered offlist to be a co-editor, so between the two of you, I think it would

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-28 Thread Adam Klein
On Tue, Sep 27, 2011 at 1:12 PM, Olli Pettay olli.pet...@helsinki.fi wrote: On 09/24/2011 12:16 AM, Adam Klein wrote: For each observer, if a registration exists which requests the matching mutation type and whose observed node set contains the target node of the mutation, a MutationRecord is

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-28 Thread Olli Pettay
On 09/28/2011 07:01 PM, Adam Klein wrote: On Tue, Sep 27, 2011 at 1:12 PM, Olli Pettayolli.pet...@helsinki.fi wrote: On 09/24/2011 12:16 AM, Adam Klein wrote: For each observer, if a registration exists which requests the matching mutation type and whose observed node set contains the target

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-27 Thread Olli Pettay
On 09/24/2011 12:16 AM, Adam Klein wrote: For each observer, if a registration exists which requests the matching mutation type and whose observed node set contains the target node of the mutation, a MutationRecord is appended to the observer's pending mutation queue. If multiple such

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-26 Thread Olli Pettay
On 09/24/2011 12:16 AM, Adam Klein wrote: Chromium (myself, Rafael Weinstein, Erik Arvidsson, Ryosuke Niwa) and Mozilla (Olli Pettay, Jonas Sicking) have worked together on a proposal for a replacement for Mutation Events. This proposal represents our best attempt to date at making a set of

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-26 Thread Olli Pettay
On 09/26/2011 11:47 AM, Olli Pettay wrote: On 09/24/2011 12:16 AM, Adam Klein wrote: Chromium (myself, Rafael Weinstein, Erik Arvidsson, Ryosuke Niwa) and Mozilla (Olli Pettay, Jonas Sicking) have worked together on a proposal for a replacement for Mutation Events. This proposal represents our

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-26 Thread Olli Pettay
On 09/24/2011 12:16 AM, Adam Klein wrote: Chromium (myself, Rafael Weinstein, Erik Arvidsson, Ryosuke Niwa) and Mozilla (Olli Pettay, Jonas Sicking) have worked together on a proposal for a replacement for Mutation Events. This proposal represents our best attempt to date at making a set of

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-26 Thread Adam Klein
On Mon, Sep 26, 2011 at 11:05 AM, Olli Pettay olli.pet...@helsinki.fi wrote: On 09/24/2011 12:16 AM, Adam Klein wrote: Chromium (myself, Rafael Weinstein, Erik Arvidsson, Ryosuke Niwa) and Mozilla (Olli Pettay, Jonas Sicking) have worked together on a proposal for a replacement for Mutation

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-26 Thread Adam Klein
On Mon, Sep 26, 2011 at 1:47 AM, Olli Pettay olli.pet...@helsinki.fi wrote: On 09/24/2011 12:16 AM, Adam Klein wrote: Chromium (myself, Rafael Weinstein, Erik Arvidsson, Ryosuke Niwa) and Mozilla (Olli Pettay, Jonas Sicking) have worked together on a proposal for a replacement for Mutation

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-26 Thread Olli Pettay
On 09/26/2011 09:09 PM, Adam Klein wrote: On Mon, Sep 26, 2011 at 11:05 AM, Olli Pettayolli.pet...@helsinki.fi wrote: On 09/24/2011 12:16 AM, Adam Klein wrote: Chromium (myself, Rafael Weinstein, Erik Arvidsson, Ryosuke Niwa) and Mozilla (Olli Pettay, Jonas Sicking) have worked together on a

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-26 Thread Adam Klein
On Mon, Sep 26, 2011 at 12:08 PM, Olli Pettay olli.pet...@helsinki.fi wrote: On 09/26/2011 09:09 PM, Adam Klein wrote: On Mon, Sep 26, 2011 at 11:05 AM, Olli Pettayolli.pet...@helsinki.fi  wrote: On 09/24/2011 12:16 AM, Adam Klein wrote: Chromium (myself, Rafael Weinstein, Erik Arvidsson,

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-23 Thread Tab Atkins Jr.
On Fri, Sep 23, 2011 at 2:16 PM, Adam Klein ad...@chromium.org wrote: [Constructor(in MutationCallback callback)] interface MutationObserver {   void observe(in Node target, in MutationObserverOptions options);   void disconnect(); }; It would be nice to have both of these return the

Re: Mutation Observers: a replacement for DOM Mutation Events

2011-09-23 Thread Tab Atkins Jr.
On Fri, Sep 23, 2011 at 4:46 PM, Adam Klein ad...@chromium.org wrote: On Fri, Sep 23, 2011 at 4:44 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Fri, Sep 23, 2011 at 2:16 PM, Adam Klein ad...@chromium.org wrote: [Constructor(in MutationCallback callback)] interface MutationObserver {