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

[Bug 3628] Validator incorrectly reports failure when using CSS1 grammar - incorrectly parses full-length numeric escapes

From: <bugzilla@wiggum.w3.org>
Date: Sat, 26 Aug 2006 00:20:16 +0000
CC:
To: www-validator-cvs@w3.org
Message-Id: <E1GGluK-0000l2-50@wiggum.w3.org>

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

           Summary: Validator incorrectly reports failure when using CSS1
                    grammar -  incorrectly parses full-length numeric
                    escapes
           Product: CSSValidator
           Version: CSS Validator
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS 1.0
        AssignedTo: ot@w3.org
        ReportedBy: cecil@cecilward.com
         QAContact: www-validator-cvs@w3.org


The validator does not parse CSS1 escapes correctly, it validates the example
below against CSS2 despite the fact that you select grammar=CSS1.

I believe that the following CSS fragment is legal CSS1, if my reading of CSS 1
is correct, yet the validator incorrectly reports an error with grammar=CSS1
selected. 
--
Test case:

        selector { color: r\0065d; }


IMPORTANT NOTE: to reproduce this defect, grammar=CSS1 must be selected.  (The
example is not valid CSS2.)
--

Reasoning: in CSS1 no space is used after the numeric escape sequence, and if
filled out to the maximum of four characters, no terminator is required. So in
CSS1 the property value is "red". See the productions for "escape" in CSS1
appendix B.

Regards,

Cecil Ward.
Received on Saturday, 26 August 2006 00:20:19 UTC

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