Re: [xhr] statusText is underdefined

On Wed, 28 Mar 2012 08:53:30 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 3/28/12 1:33 AM, Anne van Kesteren wrote:
>> Would using
>> http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#inflate-a-byte-sequence-into-a-domstring
>> be sufficient
>
> I don't know.
>
> I believe Gecko's behavior is to treat the status as UTF-8 and stop the  
> conversion at the first invalid byte or something like that (and we have  
> tests in the test suite that test for this; that's why I ran into this  
> issue at all).
>
> It's worth testing what other browsers do.  :(

Wow, "inflating" is what the specification currently requires for header  
fields, for what it's worth. I guess I will have to look into this again  
at some point.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Wednesday, 28 March 2012 08:49:29 UTC