W3C home > Mailing lists > Public > www-style@w3.org > December 2007

Selector Syntax #a#b

From: Christof Hoeke <csad7@t-online.de>
Date: Sun, 30 Dec 2007 17:37:21 +0100
Message-ID: <4777C941.4030708@gmail.com>
To: www-style@w3.org

hi,
should the following selector be valid?

#a#b

Jigsaw parses it as invalid and obviously it does not make sense but if 
I read the Selector spec right it should be syntactically valid?

http://www.w3.org/TR/css3-selectors/#grammar

simple_selector_sequence
   : [ type_selector | universal ]
     [ HASH | class | attrib | pseudo | negation ]*
   | [ HASH | class | attrib | pseudo | negation ]+
   ;

even in http://www.w3.org/TR/CSS21/grammar.html

simple_selector
   : element_name [ HASH | class | attrib | pseudo ]*
   | [ HASH | class | attrib | pseudo ]+
   ;

Should the spec be adjusted or jigsaw?

thanks,
Christof
Received on Sunday, 30 December 2007 16:37:32 GMT

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