Re: Supporting Scoped Selectors in Selectors API 2

L. David Baron wrote:
> On Monday 2009-09-28 19:46 -0500, Tab Atkins Jr. wrote:
>> On Mon, Sep 28, 2009 at 6:49 PM, Lachlan Hunt <lachlan.hunt@lachy.id.au> wrote:
>>> elm.querySelectorAll(":reference+p, div div");
>>>
>>> Or the reverse of that:
>>>
>>> elm.querySelectorAll("div div, :reference+p");
>> I'm not sure what the problem here is.  Surely you have to parse the
>> entire string before starting *anyway*.  What's wrong with saying
>> that, if :reference is found anywhere in the selector, it's a scoped
>> selector string?
> 
> I think one of the comma-separated selectors shouldn't influence
> whether any of the other selectors in the group match.  The pieces
> that are separated by commas (which css3-selectors calls selectors)
> should be independent of each other.

Agreed.

~fantasai

Received on Tuesday, 29 September 2009 18:18:26 UTC