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

Re: [CSS21] BOM vs HTTP charset

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Mon, 06 Feb 2012 18:15:23 +0100
To: www-style@w3.org
Message-ID: <op.v89ovxe7bunlto@oyvinds-desktop>
On Mon, 06 Feb 2012 15:02:42 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 2/6/12 8:43 AM, Øyvind Stenhaug wrote:
>> According to a bug on the HTML5 spec, there are Web compatibility issues
>> with the current encoding sniffing algorithm (where the HTTP charset
>> parameter overrides a BOM).
>>
>> To maintain consistency, the CSS spec would need to change too.
>
> What do current CSS implementations do?  It may well be that there are
> web compat issues with having the same behavior in HTML and CSS here...

As far as I can tell, WebKit ignores charset in the presence of a BOM,  
both for HTML and for CSS. IE9 treats them differently (seems to honor the  
charset for CSS).

-- 
Øyvind Stenhaug
Core Norway, Opera Software ASA
Received on Monday, 6 February 2012 17:16:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:50 GMT