Closed ghost closed 7 years ago
Which version of IE? I haven't tested on IE for a while.
Not just IE, in old Firefox too. This is bug in XHR implementatios. It's known.
If you want to set anything, such as timeout
or responseType
, you must open before you set, otherwise exception is thrown if the state is not OPENED
or HEADERS_RECEIVED
.
XHR InvalidStateError in IE.
Can be fixed by moving
xhr.open(method, this._url);
and place it after
var xhr = this._createXHRObject();