W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2006

[Bug 3630] Validator incorrectly reports validity for case of illegal escaped newline (but only in certain cases)

From: <bugzilla@wiggum.w3.org>
Date: Sat, 26 Aug 2006 00:23:47 +0000
CC:
To: www-validator-cvs@w3.org
Message-Id: <E1GGlxj-0000sQ-Mi@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3630

           Summary: Validator incorrectly reports validity for case of
                    illegal escaped newline (but only in certain cases)
           Product: CSSValidator
           Version: CSS Validator
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS 2.0
        AssignedTo: ot@w3.org
        ReportedBy: cecil@cecilward.com
         QAContact: www-validator-cvs@w3.org


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 "string1"/"string2" 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.
Received on Saturday, 26 August 2006 00:24:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:54 GMT