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 3631 - Validator incorrectly reports validity for case of illegal escaped whitespace after property value
Summary: Validator incorrectly reports validity for case of illegal escaped whitespace...
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:25 UTC by CecilWard
Modified: 2008-03-17 15:04 UTC (History)
0 users

See Also:


Attachments

Description CecilWard 2006-08-26 00:25:20 UTC
Test cases, checked using direct input mode, grammar CSS2 selected:

Test case i)

	element {color:red\ ; }

Test case ii)

	element {color:red\  }


I believe that the above are 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 "ident" in CSS2 section D.2; CSS 2 only permits escapes within "ident"/"name", "string" and "url".

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


Regards,

Cecil Ward.
Comment 1 CecilWard 2007-10-24 09:37:35 UTC
Retested 2007-10-24, this bug still evident (both test cases).
Comment 2 Yves Lafon 2008-03-17 15:04:28 UTC
Fixed now with corrected grammar, and the removal of extraneous String.trim calls.
Note that for now what is displayed may seem strange, the ' ' should probably be quoted in the error output.

See http://qa-dev.w3.org:8001/