W3C home > Mailing lists > Public > www-style@w3.org > September 2009

Re: Supporting Scoped Selectors in Selectors API 2

From: Brad Kemper <brad.kemper@gmail.com>
Date: Mon, 28 Sep 2009 09:58:10 -0700
Cc: Lachlan Hunt <lachlan.hunt@lachy.id.au>, www-style <www-style@w3.org>
Message-Id: <1F247F79-125E-4481-8346-DC05F2304952@gmail.com>
To: Andrew Fedoniouk <news@terrainformatica.com>

On Sep 28, 2009, at 9:35 AM, Andrew Fedoniouk wrote:

> elm.querySelector(": div div, : div p");
> elm.querySelector(": > em, :> strong, :+code");
>
> Such construction definitely will not conflict with any future  
> selectors.

What makes you so sure? It seems to imply a pseudo-class, but not any  
particular pseudo-class, and maybe in the future there will be a more  
appropriate one to use with a naked colon at the beginning. Is there  
any problem (other than length), with being more specific, such as:

  elm.querySelector(":reference > em, :> strong, :reference +code");

> More strong (grammatically) alternative is "::" - double colons.

Also more confusing, as double colons are associated with pseudo- 
elements, not pseudo-classes.
Received on Monday, 28 September 2009 16:58:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:21 GMT