W3C home > Mailing lists > Public > public-webapi@w3.org > May 2008

Re: [SelectorsAPI] Thoughts on querySelectorAll

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 30 Apr 2008 17:35:40 -0700
To: John Resig <jresig@mozilla.com>
Cc: public-webapi@w3.org
Message-ID: <20080501003540.GA8043@ridley.dbaron.org>

On Wednesday 2008-04-30 15:24 -0700, John Resig wrote:
> > I presume what you want instead is that element-rooted queries are
> > handled by matching such that each simple selector (CSS2 definition)
> > or sequence of simple selectors (css3-selectors definition, and I
> > *still* object to changing the meaning of existing terms) must match
> > an element that is or is a descendant of the specified element (the
> > root of the query).
> > 
> > Or do you want to eliminate "is or" in my previous paragraph, to
> > exclude the query root?  Or something else?
> I would exclude "is or" - only descendant elements, in this case. For example:

But then you'd need to have an exception to that rule to allow
":scope > div" to work.  If you want to be able to do ":scope >
div", it seems preferable to have the "is or" rather than have some
subset of selectors be special.  (Which ones?  Just ":scope > div"
or also "p:scope > div"?)


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 1 May 2008 00:36:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:26 UTC