Re: XHR responseArrayBuffer attribute: suggestion to replace "asBlob" with "responseType"

On Oct 25, 2010, at 4:07 PM, Jeremy Orlow wrote:

> ...3. Get rid of the "asBlob" attribute and add a new "responseType"
> attribute which could be:
> "Text" <--- this is the default
> "XML"
> "Bytes"
> ... other types yet to be defined
> 
> I'm not sure I follow this proposal.
> 
> The parameter would be added to .open() (after username and password).  This means you'd have to pass in undefined for both in most uses.  And it has the disadvantage you mentioned for #2.

It could be done in a separate call (setResponseType(in DOMString type)), to avoid that.

-----
~Chris
cmarrin@apple.com

Received on Tuesday, 26 October 2010 23:51:20 UTC