Re: [xhr] statusText is underdefined

On 3/28/12 1:33 AM, Anne van Kesteren wrote:
> On Tue, 27 Mar 2012 22:23:15 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>> But the HTTP status text is a sequence of bytes, while the return
>> value for statusText is a DOMString. The conversion from one to the
>> other needs to be defined.
>
> 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.  :(

-Boris

Received on Wednesday, 28 March 2012 07:54:04 UTC