This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3630 - Validator incorrectly reports validity for case of illegal escaped newline (but only in certain cases)
Summary: Validator incorrectly reports validity for case of illegal escaped newline (b...
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.0 (show other bugs)
Version: CSS Validator
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://lists.w3.org/Archives/Public/w...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-26 00:23 UTC by CecilWard
Modified: 2007-10-24 09:34 UTC (History)
0 users

See Also:


Attachments

Description CecilWard 2006-08-26 00:23:47 UTC
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.
Comment 1 Olivier Thereaux 2006-08-28 02:10:22 UTC
Thanks for the report.
Comment 2 CecilWard 2007-10-24 09:34:33 UTC
This bug appears now to be fixed.