W3C home > Mailing lists > Public > www-style@w3.org > October 2000

Selectors WD: grammar

From: Matthew Brealey <webmaster@richinstyle.com>
Date: 6 Oct 2000 10:26:41 -0000
Message-ID: <20001006102641.29129.qmail@phoenix.futurequest.net>
To: www-style@w3.org
pseudoelement
  : '::' IDENT
  ;

is wrong - try:

pseudoelement
  : ':' ':' IDENT
  ;

[them thar be two tokens]

---

The words of the spec and the grammar don't match:

simple_selector_sequence
  : [ [ namespace_prefix ]? element_name ]? [ HASH ...

element_name
  : IDENT | '*'
  ;

[i.e. element_name (the type/universal selector) is optional]
 cf.

A sequence of simple selectors ... always begin [sic] with a type selector or a universal selector.

So:

simple_selector_sequence
  : [ [ namespace_prefix ]? element_name ] [ HASH ...

and

element_name
  : [IDENT | '*']?
  ;

[Also, some of the faults with the grammar remain; e.g., that name is too loose.]
Received on Friday, 6 October 2000 06:26:49 GMT

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