<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17511</bug_id>
          
          <creation_ts>2012-06-16 12:22:29 +0000</creation_ts>
          <short_desc>Add comment to clarify simple_selector production in G.1</short_desc>
          <delta_ts>2012-12-04 00:51:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSS Level 2</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anton P">antonsforums</reporter>
          <assigned_to name="Bert Bos">bert</assigned_to>
          
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69142</commentid>
    <comment_count>0</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-06-16 12:22:29 +0000</bug_when>
    <thetext>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 &quot;#&quot;; e.g., &quot;#000&quot; is OK, but &quot;#abcd&quot; is not.
  #  */
  # hexcolor
  #   : HASH S*
  #   ;

where contraints are noted.


Conversation begins:
Bug description:
http://lists.w3.org/Archives/Public/www-style/2012May/0770.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69143</commentid>
    <comment_count>1</comment_count>
    <who name="Anton P">antonsforums</who>
    <bug_when>2012-06-16 12:25:25 +0000</bug_when>
    <thetext>Kang-Hao (Kenny) Lu proposes adding a comment as follows:

  | /*
  |  * There is a constraint on the ID selector that the part after
  |  * &quot;#&quot; should match an IDENT; e.g., &quot;#abc&quot; is OK, but &quot;#1st&quot; is not.
  |  */
  | simple_selector
  | [...]

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

Tab Atkins Jr. agrees, provided that it&apos;s web-compatible; else he proposes changing the validity of ID selectors to match UA behaviour.

http://lists.w3.org/Archives/Public/www-style/2012May/0873.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>