W3C home > Mailing lists > Public > www-style@w3.org > October 2008

Re: [CSS21] @charset encoding delimiter

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 30 Oct 2008 15:56:36 -0700
Message-ID: <490A3BA4.9000200@inkedblade.net>
To: Sylvain Galineau <sylvaing@microsoft.com>
CC: "www-style@w3.org" <www-style@w3.org>

Sylvain Galineau wrote:
> Per chapter 4 [1],
> 
> @charset must be written literally, i.e., the 10 characters '@charset "' (lowercase, no backslash escapes), followed by the encoding name, followed by '";'.
> 
> The grammar, however, allows for @charset<space><singlequote>, as pointed out on this mailing list last year [2].
> 
> Issue 3 [3] accepted the change. Issue 4 [4] implies the rule may be stricter than the grammar.
> 
> The change appendix [5] says : "Added requirement that @charset rule must be a literal '@charset"...";', not a CSS-syntax equivalent."
> 
> Given this and the very specific byte matching table in section 4.4, can we assume the double quote is the only legal charset encoding delimiter ?

Yes.

~fantasai
Received on Thursday, 30 October 2008 22:57:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:15 GMT