W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: [XHR2] overrideMimeType in state UNSENT

From: Jonas Sicking <jonas@sicking.cc>
Date: Wed, 9 Nov 2011 09:30:32 -0800
Message-ID: <CA+c2ei8FaFrC4Q4sJHcN6FhPuc0SrNUG2Qr-Nb58FT5S8OspbQ@mail.gmail.com>
To: Andrew Oakley <andrew@ado.is-a-geek.net>
Cc: WebApps WG <public-webapps@w3.org>
On Wednesday, November 9, 2011, Andrew Oakley <andrew@ado.is-a-geek.net>
wrote:
> It seems fairly common to call overrideMimeType before open(), but
> should throw an InvalidStateError according to current XHR2 editors draft.
>
> If you search (Google) for overrideMimeType a significant number of
> first page results show calling of overrideMimeType before the open
> call, so I imagine this will become increasingly common as people
> copy+paste.
>
> I don't think this is a particularly problematic thing to allow so can
> we please update the spec to allow this?

And for the sake of consistency and ease of use, we should allow setting
.responseType at that time too.

/ Jonas
Received on Wednesday, 9 November 2011 17:31:09 GMT

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