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

Re: [CSS21] Please make the BOM take highest precedence for character encoding information for text/css (higher than HTTP)

From: Florian Rivoal <florian@rivoal.net>
Date: Sun, 21 Oct 2012 10:40:01 +0200
To: Henri Sivonen <hsivonen@iki.fi>,www-style@w3.org
Message-ID: <3d7ce71e-619f-4d23-b176-2292a8b7cc58@email.android.com>
On the face of it, it sounds like a good idea.

Given that some browsers, as you said, already behave that way, I would like to encourage the vendors of these browsers to check their bug database to verify that this behavior isn't a source of problems.


Henri Sivonen <hsivonen@iki.fi> wrote:

>Regarding: http://www.w3.org/TR/CSS21/syndata.html#charset
>Letting HTTP-level character encoding information take precedence over
>a BOM never leads to sensible results, because the bytes that a BOM
>consists of never occurred for non-BOM purposes at the start of a
>file. So far, it seems that making the BOM override HTTP for HTML and
>JavaScript makes a Web engine more Web-compatible. The BOM overrides
>HTTP for HTML in IE up to and including 9 (but not 10), in Chrome and
>in Opera. The BOM overrides HTTP for JS in IE7 (but not in 8, 9 or
>10), in Chrome and in Opera.
>While I am unaware of Web compat evidence for CSS, it would make CSS
>more consistent with the rest of the platform to make the BOM take the
>highest precedence for CSS as well. Opera and Chrome already give the
>BOM the highest precedence for CSS.
>I did not test Safari.
>Please change CSS to give the highest precedence to the BOM (UTF-8,
>UTF-16 little endian or UTF-16 big endian).
>Gecko bug for the CSS case:
>Gecko bug for the JavaScript case:
>Gecko bug for the HTML and XML case:
>Spec bug for the JavaScript case:
>Spec bug for the HTML case:
>Test case for HTML:
>Test case for CSS and JS:
>(Check baseline for :after support:
>http://hsivonen.iki.fi/test/moz/bom/baseline.html )
Received on Sunday, 21 October 2012 08:40:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:04 UTC