Re: [XHR] responseType "json"

On Sun, 11 Dec 2011 06:10:26 +0100, Jarred Nicholls <jarred@sencha.com>  
wrote:
> For legacy reasons, responseText and responseXML continue to work  
> together despite the responseType that is set.

This is false. responseType "text" allows access to responseText, but not  
responseXML. "document" allows access to responseXML, but not responseText.

We made this exclusive to reduce memory usage. I hope that browsers will  
report the JSON errors to the console and I think at some point going  
forward we should probably introduce some kind of error object for  
XMLHttpRequest.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Sunday, 11 December 2011 11:55:49 UTC