<?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>1072</bug_id>
          
          <creation_ts>2005-02-07 11:23:55 +0000</creation_ts>
          <short_desc>CSS3: Error in parsing selectors with comments</short_desc>
          <delta_ts>2006-04-25 09:52:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>Other</component>
          <version>CSS Validator</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christian Roth">roth</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4229</commentid>
    <comment_count>0</comment_count>
    <who name="Christian Roth">roth</who>
    <bug_when>2005-02-07 11:23:55 +0000</bug_when>
    <thetext>The following stylesheet gives an error when validating using CSS3 profile:

a/*test*/b {color: red}

It is however valid according to CSS3 selectors grammar (which is normative) and should be interpreted 
like CSS2&apos;s

a b { color: red}

Note that the CSS3 selectors grammar does not require an explicit whitespace as combinator, it can 
also be empty. This is a change compared with parsing selectors in CSS2+CSS21 and therefore should 
be handled properly in the respective CSS level profile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9435</commentid>
    <comment_count>1</comment_count>
    <who name="Bert Bos">bert</who>
    <bug_when>2006-04-25 09:52:04 +0000</bug_when>
    <thetext>This was fixed in the latest draft of Selectors (http://www.w3.org/TR/2005/WD-css3-selectors-20051215). The text (both in sections 4 and 8.1) has always said that the &quot;combinator&quot; of a descendant selector must contain white space. The grammar incorrectly allowed empty combinators in the versions until Nov 2001.

The example &quot;a/*test*/b&quot; is not a valid selector in CSS3, because two identifiers cannot follow each other without white space or some punctuation between them. There is no difference between CSS level 3 and lower levels in that respect.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>