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 3629 - Validator incorrectly reports CSS1-validity for case of escape + space (tested within property value)
Summary: Validator incorrectly reports CSS1-validity for case of escape + space (teste...
Status: NEW
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 1.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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-26 00:21 UTC by CecilWard
Modified: 2007-10-23 21:33 UTC (History)
0 users

See Also:


Attachments

Description CecilWard 2006-08-26 00:21:30 UTC
The validator does not validate CSS1 correctly, it validates the example below against CSS2 despite the fact that you select grammar=CSS1.
 
I believe that the following CSS fragment is illegal CSS1, if my reading of CSS 1 is correct, yet the validator reports no error with grammar=CSS1 selected. 
--
Test case:

	element { color: r\65 d }

IMPORTANT NOTE: to reproduce this defect, grammar=CSS1 MUST be selected, in which case the validator incorrectly reports success. (The example is valid CSS2.)
--

Reasoning: in CSS1 the space after the numeric escape sequence is not to be stripped as in CSS2. So in CSS1 the property value is "re d", and only in the CSS2 grammar is the value "red". See the productions for "escape" in CSS1 appendix B.

Regards,

Cecil Ward.
Comment 1 Olivier Thereaux 2007-07-19 09:29:48 UTC
This looks fixed since Bug #3627 was fixed. Keeping opened until we are sure that it is fixed, and have test cases.
Comment 2 CecilWard 2007-10-23 21:33:58 UTC
(In reply to comment #1)
> This looks fixed since Bug #3627 was fixed. Keeping opened until we are sure
> that it is fixed, and have test cases.

No. Retested today, this bug is still outstanding; the validator still incorrectly reports no error with grammar=CSS1 selected