<?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>3634</bug_id>
          
          <creation_ts>2006-08-26 00:28:07 +0000</creation_ts>
          <short_desc>Validator incorrectly reports validity for case of illegal escaped whitespace before property value</short_desc>
          <delta_ts>2008-03-14 13:41:14 +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.0</component>
          <version>CSS Validator</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/www-validator-css/2006Aug/0022.html</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>11291</commentid>
    <comment_count>0</comment_count>
    <who name="CecilWard">cecil</who>
    <bug_when>2006-08-26 00:28:07 +0000</bug_when>
    <thetext>Test case checked using direct input mode, grammar CSS2 selected:

Test case :

	element {color:\ red; }

I believe that the above is illegal, if my reading of CSS 2.1 and CSS 2 is correct, yet the validator reports no error.

Reasoning: the escaped space should be treated as _part of_ an _identifier_, not as a normal whitespace separator. See the productions for &quot;ident&quot; in CSS2 section D.2; CSS 2 only permits escapes within &quot;ident&quot;/&quot;name&quot;, &quot;string&quot; and &quot;url&quot;.

So the property value should be an identifier &quot; red&quot;, which is not a valid value for the color property.


Regards,

Cecil Ward.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17383</commentid>
    <comment_count>1</comment_count>
    <who name="CecilWard">cecil</who>
    <bug_when>2007-10-24 09:42:00 +0000</bug_when>
    <thetext>Re-tested 2007-10-24; this bug still remains evident.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19451</commentid>
    <comment_count>2</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2008-03-13 16:56:31 +0000</bug_when>
    <thetext>Fixed, the setValue method was incorrectly trimming the value after adding a potentiel extra leading space.

see http://qa-dev.w3.org:8001/css-validator/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19476</commentid>
    <comment_count>3</comment_count>
      <attachid>537</attachid>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-03-14 13:41:14 +0000</bug_when>
    <thetext>Created attachment 537
test case

adding to test suite for regression testing</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>537</attachid>
            <date>2008-03-14 13:41:14 +0000</date>
            <delta_ts>2008-03-14 13:41:14 +0000</delta_ts>
            <desc>test case</desc>
            <filename>3634.css</filename>
            <type>text/css</type>
            <size>23</size>
            <attacher name="Olivier Thereaux">ot</attacher>
            
              <data encoding="base64">ZWxlbWVudCB7Y29sb3I6XCByZWQ7IH0=
</data>

          </attachment>
      

    </bug>

</bugzilla>