W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: Encoding Spec and Encoding for readAsText

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 13 Feb 2012 12:48:33 +0100
To: "Arun Ranganathan" <aranganathan@mozilla.com>
Cc: "WebApps WG" <public-webapps@w3.org>
Message-ID: <op.v9l8e7bv64w2qv@annevk-macbookpro.local>
On Mon, 06 Feb 2012 19:18:35 +0100, Arun Ranganathan  
<aranganathan@mozilla.com> wrote:
>> I think per https://www.w3.org/Bugs/Public/show_bug.cgi?id=15359 we
>> want to let the BOM checking happen before the other considerations.
>
> Really?  Does that mean, favoring BOM checking over the Blob's type  
> attribute and the optional encoding parameter of the readAsText()  
> method?  Why exactly?

Because the BOM is more authoritative. I suppose we could make the  
encoding argument be a hard override, but BOM should definitely override  
Blob.type.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Monday, 13 February 2012 11:49:12 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:50 GMT