Re: [CSS21] BOM vs HTTP charset

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 UTC