Re: [XHR2] responseType / response / overrideMimeType proposal

2010-11-30 Thread Anne van Kesteren
On Mon, 29 Nov 2010 18:21:44 +0100, Anne van Kesteren wrote: Before I write it out it would be nice to assess whether there is consensus on this. From the current draft, asBlob, responseBlob, and responseArrayBuffer are removed. response and responseType are added. http://dev.w3.org/2006/w

Re: [XHR2] responseType / response / overrideMimeType proposal

2010-11-29 Thread Chris Rogers
Actually, that's not quite true. The WebKit prototype *does* throw when .responseText or .responseXML is accessed, but .responseType is not compatible (for example, "arraybuffer", or "blob") > IIRC, in our current experimental implementation accessing > .responseText and .responseXML *never* th

Re: [XHR2] responseType / response / overrideMimeType proposal

2010-11-29 Thread Tab Atkins Jr.
On Mon, Nov 29, 2010 at 3:00 PM, Chris Rogers wrote: > Anne, for what it's worth, in my initial implementation in WebKit, I've > allowed .responseText to be accessed (without throwing) if .responseType == > "text". > Likewise, .responseXML can be accessed (without throwing) if .responseType > == "

Re: [XHR2] responseType / response / overrideMimeType proposal

2010-11-29 Thread Chris Rogers
Anne, for what it's worth, in my initial implementation in WebKit, I've allowed .responseText to be accessed (without throwing) if .responseType == "text". Likewise, .responseXML can be accessed (without throwing) if .responseType == "document" I don't have a strong opinion either way. But it was

Re: [XHR2] responseType / response / overrideMimeType proposal

2010-11-29 Thread Chris Rogers
I don't think that performance should be very much of an issue since .responseType would normally only be set once. The performance hit is negligible, and the string version seems to be clearer to use. Chris On Mon, Nov 29, 2010 at 11:48 AM, Jonas Sicking wrote: > On Mon, Nov 29, 2010 at 9:21

Re: [XHR2] responseType / response / overrideMimeType proposal

2010-11-29 Thread Jonas Sicking
On Mon, Nov 29, 2010 at 9:21 AM, Anne van Kesteren wrote: > Before I write it out it would be nice to assess whether there is consensus > on this. From the current draft, asBlob, responseBlob, and > responseArrayBuffer are removed. response and responseType are added. > > responseType can be set w

Re: [XHR2] responseType / response / overrideMimeType proposal

2010-11-29 Thread James Robinson
On Mon, Nov 29, 2010 at 9:21 AM, Anne van Kesteren wrote: > Before I write it out it would be nice to assess whether there is consensus > on this. From the current draft, asBlob, responseBlob, and > responseArrayBuffer are removed. response and responseType are added. > > responseType can be set