[Bug 17511] New: Add comment to clarify simple_selector production in G.1

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17511

           Summary: Add comment to clarify simple_selector production in
                    G.1
           Product: CSS
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS Level 2
        AssignedTo: bert@w3.org
        ReportedBy: antonsforums@yahoo.co.uk
         QAContact: public-css-bugzilla@w3.org


Reported by Kang-Hao (Kenny) Lu

G.1 defines the simple_selector production as follows:

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

This fails to alert the reader to the fact that the ID selector has
constraints.  This is in contrast to

  # /*
  #  * There is a constraint on the color that it must
  #  * have either 3 or 6 hex-digits (i.e., [0-9a-fA-F])
  #  * after the "#"; e.g., "#000" is OK, but "#abcd" is not.
  #  */
  # hexcolor
  #   : HASH S*
  #   ;

where contraints are noted.


Conversation begins:
Bug description:
http://lists.w3.org/Archives/Public/www-style/2012May/0770.html

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 16 June 2012 12:22:31 UTC