<?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>3630</bug_id>
          
          <creation_ts>2006-08-26 00:23:47 +0000</creation_ts>
          <short_desc>Validator incorrectly reports validity for case of illegal escaped newline (but only in certain cases)</short_desc>
          <delta_ts>2007-10-24 09:34:33 +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/0030.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>11287</commentid>
    <comment_count>0</comment_count>
    <who name="CecilWard">cecil</who>
    <bug_when>2006-08-26 00:23:47 +0000</bug_when>
    <thetext>I believe that the following CSS fragment is illegal, if my reading of CSS 2.1 and CSS 2 is correct, yet the validator reports no error.

--
Test case:

	element {color : red;  }\

IMPORTANT NOTE: to reproduce this defect, note the following conditions: (i) a newline must be inserted immediately after the backslash, and (ii) it is important that there be no other characters at all following the newline.
Test case checked using direct input mode, grammar CSS2 selected.
--

Reasoning: the escaped newline is only legal inside a string, if my reading is correct. See the productions for &quot;string1&quot;/&quot;string2&quot; in CSS2 section D.2.

(An aside; FYI: note that the example
	element {color : red;  }\
	a {}
is rejected, which is as it should be.)

Regards,

Cecil Ward.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11296</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-08-28 02:10:22 +0000</bug_when>
    <thetext>Thanks for the report.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17379</commentid>
    <comment_count>2</comment_count>
    <who name="CecilWard">cecil</who>
    <bug_when>2007-10-24 09:34:33 +0000</bug_when>
    <thetext>This bug appears now to be fixed. 

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>