<?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>4870</bug_id>
          
          <creation_ts>2007-07-19 10:40:55 +0000</creation_ts>
          <short_desc>Comment inside selector, with whitespace before and after</short_desc>
          <delta_ts>2009-02-06 16:45:37 +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>CSS 2.1</component>
          <version>CSS Validator</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="CecilWard">cecil</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</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>15882</commentid>
    <comment_count>0</comment_count>
    <who name="CecilWard">cecil</who>
    <bug_when>2007-07-19 10:40:55 +0000</bug_when>
    <thetext>Following on from my muddled comments wrt 3313

Test case 1:

    a /**/ b { width:0}

is (still) reported as invalid. (Tested using direc input, &quot;no special profile&quot; setting).

FYI, in contrast, compare this with the correct behaviour in each of the following test cases:

Test case 2:
  a /**/&gt;  b { width:0}
(which is correctly? reported as valid).

and

Test case 3:
  a/**/ b { width:0}

Test case 4:
  a /**/b { width:0}

all of which are correctly reported as valid.



This is part of a more general comments==/!=whitespace issue.

[OffTopic]. This issue is arguably related to the quality of the CSS 2.1 (say) spec&apos;s appendix containing a rough formal grammar, which really does need to be cleaned up to clarify the rules about the distribution of comments and particularly [comment+whitespace] and [whitespace+comment] sequences.

I suggest that the validator team might like to pass on a comment to the CSS people as a suggestion for inclusion in a (imo much needed) CSS2.11 clarification addendum. probably just need the rules in the appendix to be fixed up a bit (poss, see the discussion wrt bug 3313).

Cecil Ward.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17385</commentid>
    <comment_count>1</comment_count>
    <who name="CecilWard">cecil</who>
    <bug_when>2007-10-24 10:18:07 +0000</bug_when>
    <thetext>Re-tested, 2007-10-24; behaviour remains unchanged. In respect of test case 1, the &quot;correctness&quot; of the validator needs to be reviewed, but the issue is at least as much about what actually is the precise grammar of CSS x?.?

In the light of the actual behaviour of IE versions it is arguable that the current behaviour of the validator (in failing test case 1) is &quot;helpful&quot;, whether or not it is correct.

Maybe this is an argument for an &quot;extra-strict&quot; aka &quot;real-world&quot; or (&quot;extra warnings&quot;) parsing mode option, one that is more restrictive than the real CSS vx.x published grammars, which would warn against bizarre unrealistic CSS that will fail in one or more known UA.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19601</commentid>
    <comment_count>2</comment_count>
    <who name="CecilWard">cecil</who>
    <bug_when>2008-03-23 07:11:52 +0000</bug_when>
    <thetext>Re-tested 2008-03-20. FIXED. (but not yet made public)

Test case 1 is now fixed in the development build http://qa-dev.w3.org:8001/css-validator/validator [- but the publicly visible build is still currently in error.]

So we can safely mark this as FIXED.

[!! HOWEVER, Test case 2 is NOW BROKEN in the development build - reported separately under new bug 5586 ]

Test case 3 and 4 are (still) fine, as ever.

Recommend adding (at least) all the four test cases, given that there&apos;s already been a regression.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>