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

[Bug 3634] Validator incorrectly reports validity for case of illegal escaped whitespace before property value

From: <bugzilla@wiggum.w3.org>
Date: Sat, 26 Aug 2006 00:28:08 +0000
CC:
To: www-validator-cvs@w3.org
Message-Id: <E1GGm1w-00012Y-2j@wiggum.w3.org>

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

           Summary: Validator incorrectly reports validity for case of
                    illegal escaped whitespace before property value
           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


Test case checked using direct input mode, grammar CSS2 selected:

Test case :

        element {color:\ red; }

I believe that the above is 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.
Received on Saturday, 26 August 2006 00:28:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:26 UTC