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 3633 - Validator incorrectly reports validity for case of escaped close-quote which leaves quoted string unterminated
Summary: Validator incorrectly reports validity for case of escaped close-quote which ...
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:26 UTC by CecilWard
Modified: 2007-10-24 09:40 UTC (History)
0 users

See Also:


Attachments

Description CecilWard 2006-08-26 00:26:51 UTC
Test case checked using direct input mode, grammar CSS2 selected:

Test cases :


element { background-image: url("myimage\") ; }

element { background-image: url('myimage\') ; }

selector { font-family: "MyFont3\",  Serif;  }


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

Reasoning: the escaped quote mark should be treated as _part of_ an _identifier_, not as a closing string quote. See the productions for "string1"/"string2" and "url" in CSS2 section D.2.


Regards,

Cecil Ward.
Comment 1 CecilWard 2007-10-24 09:40:32 UTC
This bug now appears to be fixed; correct behaviour on each of the three test cases.