W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2008

[Bug 5718] Problem validating CSS files with UTF-8 characters

From: <bugzilla@farnsworth.w3.org>
Date: Tue, 27 May 2008 14:02:49 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1K0zlJ-0001dH-DQ@farnsworth.w3.org>


           Summary: Problem validating CSS files with UTF-8 characters
           Product: CSSValidator
           Version: CSS Validator
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS 2.1
        AssignedTo: dave.null@w3.org
        ReportedBy: radu_coravu@sync.ro
         QAContact: www-validator-cvs@w3.org

As far as I can see in the specification CSS files can contain all possible
Unicode characters if the "@charset" declaration in them allows that.

There seem to be 2 problems in the CssParser.jj file.
First, in the options{} block you should set the "UNICODE_INPUT = true;"
property so that the parser can handle unicode chars if the reader was
correctly built.
Then, the NONASCII token should probably be declared as:  ~["\000"-"\177"]
This means anything but ASCII.

I will try to attach 2 test files. The XML is correctly displayed in Firefox
but the validator complains about the CSS file
Received on Tuesday, 27 May 2008 14:03:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:28 UTC