Re: [XHR2] overrideMimeType in state UNSENT

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 UTC