W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2009

Re: Mutation events

From: François REMY <fremycompany_pub@yahoo.fr>
Date: Sun, 10 May 2009 14:02:51 +0200
Message-ID: <E7FDCEBA5B3E4C82B7F5E88D24DAB018@FREMYCOMPANY>
To: "Mike Wilson" <mikewse@hotmail.com>, <www-dom@w3.org>

From: "Mike Wilson" <mikewse@hotmail.com>
> (...)
>
> If we assume that we were able to specify this filtering in
> some general way for all mutation types, would this make
> enough difference in performance to be an interesting
> option?
>
> And if the answer above is yes, could the general
> mechanism for specifying filters be based on CSS selectors
> and find synergies with querySelectorAll in the Selectors
> API?

I agree with you. We should be able to filter events we want to receive.
But CSS Selectors have problem : we can't match an attribute or a text node, 
only an HTMLElement.

XPath seems here more appropriate, though we can provide CSS Selectors too, 
as additional solution.

Regards,
Fremy 
Received on Sunday, 10 May 2009 12:03:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:00 GMT