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

Re: [XHR] responseType "json"

From: Anne van Kesteren <annevk@opera.com>
Date: Sun, 11 Dec 2011 12:55:34 +0100
To: public-webapps@w3.org, "Jarred Nicholls" <jarred@sencha.com>
Message-ID: <op.v6bp2w0j64w2qv@annevk-macbookpro.local>
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 GMT

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