W3C home > Mailing lists > Public > www-style@w3.org > December 2000

CSS charset determination

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 2 Dec 2000 22:52:37 +0100
Message-ID: <017901c05caa$46c73530$c7e0a8c0@de>
To: <www-style@w3.org>
Hi,

http://www.w3.org/TR/REC-CSS2/syndata.html#q23 reads:

[...]
When a style sheet resides in a separate file, user agents must observe the
following priorities when determining a document's character encoding (from
highest priority to lowest):

  * An HTTP "charset" parameter in a "Content-Type" field.
  * The @charset at-rule.
  * Mechanisms of the language of the referencing document
    (e.g., in HTML, the "charset" attribute of the LINK element).
[...]

The lower precedence of the @charset rule stays in contradiction to XML and
HTML where the charset is defined _in the document_, why?
--
Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981ASK ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://learn.to/quote [!]e
  "Everything we see or seem is but a dream within a dream" - E.A. Poe
Received on Saturday, 2 December 2000 16:52:06 GMT

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