Re: [cssom] Rationale for including (or not) CSSCharsetRule

Le 28/05/2013 21:21, Simon Pieters a écrit :
> Hi Glenn and Anne
> In
> CSSCharsetRule was obsoleted because it was "not deemed necessary".
> In it was restored by Glenn.
> I could not find any discussion about either of these decisions. If I
> missed it, please provide a pointer.
> Could both of you please elaborate on the rationale regarding
> CSSCharsetRule?
> If anyone else has opinions about CSSCharsetRule, please state them.

@charset is not a rule comparable to @import, it’s closer to a BOM. It’s 
not something defined in terms of component values, tokens, or even 
characters, it’s an exact byte pattern that is matched before 
tokenization even starts.

What would it mean to add or change a CSSCharsetRule on a parsed stylesheet?

Simon Sapin

Received on Tuesday, 28 May 2013 14:24:51 UTC