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>  
> 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  

Anne van Kesteren
Received on Sunday, 11 December 2011 11:55:49 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:37 UTC