Re: Firefox bug: "Worker" load ignores Content-Type version parameter

On Fri, 18 Nov 2011 13:03:03 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 11/19/11 12:52 AM, Julian Reschke wrote:
>> <http://dev.w3.org/html5/workers/#importing-scripts-and-libraries> says.
>
> For what it's worth, Gecko's worker loading code runs the same algorithm  
> to determine the charset as the algorithm used for <script src> (except  
> of course it does not have access to any "charset" attributes on an  
> element).
>
> And by "same algorithm" I mean "they call the same function in our code  
> which takes the HTTP headers, document object, value of @charset, and  
> bytes and returns a Unicode string".
>
> If we have UA compat on that behavior, it makes more sense to  
> standardize it than to standardize the UTF-8-only thing, perhaps....

Opera conforms to the spec and always decodes worker scripts as UTF-8.

-- 
Simon Pieters
Opera Software

Received on Friday, 18 November 2011 12:23:56 UTC