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

Re: [xhr] statusText is underdefined

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 28 Mar 2012 00:53:30 -0700
Message-ID: <4F72C37A.6060103@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: public-webapps@w3.org
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 GMT

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