[Bug 2920] Several invalid forms using @charset passed as valid

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

           Summary: Several invalid forms using @charset  passed as valid
           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


The CSS validator passes the following with no error,

Test case 1.
    @charset"utf-8";

(spec requires a space before open quotes)


Test case 2.
    @charset              "utf-8";

(spec requires exactly 1 space before opening double quotes)


Test case 3.
    @charset
    "utf-8";

(newline instead of space)

Test case 4.
    @charset/**/"utf-8";

Test case 5.
    @charset "utf-8" ;

(illegal space before semicolon)

Test case 6.
    @charset "utf-8"
    ;

(illegal newline before semicolon)

Test case 7:
    /**/@charset "utf-8";


Regards,

Cecil Ward.

Received on Wednesday, 22 February 2006 22:35:17 UTC