Re: Encoding Spec and Encoding for readAsText

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 UTC