It seems that when received type is json then response is null and responseText is json text, but from my understanding of standard it should be vice versa.
From: https://xhr.spec.whatwg.org/#the-responsetext-attribute about responseText
1 .If responseType is not the empty string or "text", then throw an "InvalidStateError" DOMException.
I am also not sure that I am looking at correct standard. Let me know where can I find text of standard that this library is based on.
It seems that when received type is
jsonthenresponseis null andresponseTextis json text, but from my understanding of standard it should be vice versa.From: https://xhr.spec.whatwg.org/#the-responsetext-attribute about
responseTextI am also not sure that I am looking at correct standard. Let me know where can I find text of standard that this library is based on.