W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: Proposal for limited :matches pseudoclass

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 31 Jul 2008 16:41:57 -0700
Message-ID: <48924DC5.1050009@mit.edu>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>

Tab Atkins Jr. wrote:
> Got it there at the end.  The + and ~ combinators seem to be naturally 
> symmetric, thus whether you match forward or backward doesn't seem to 
> make a difference in the complexity (to me, at least).

But there is a fundamental asymmetry in DOM mutations.  During parsing, 
you always add chidren and later siblings, almost never previous 
siblings, and never ancestors.

Once the page is all loaded, of course, things are a lot more symmetric.

-Boris
Received on Thursday, 31 July 2008 23:42:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT