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

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

From: Chris Marrin <cmarrin@apple.com>
Date: Tue, 26 Oct 2010 16:50:41 -0700
Cc: Boris Zbarsky <bzbarsky@mit.edu>, Chris Rogers <crogers@google.com>, Web Applications Working Group WG <public-webapps@w3.org>, Anne van Kesteren <annevk@opera.com>, Eric Uhrhane <ericu@google.com>, michaeln@google.com, Darin Fisher <darin@google.com>, Alexey Proskuryakov <ap@webkit.org>, Geoffrey Garen <ggaren@apple.com>
Message-id: <32096D33-BE80-4F65-B304-CD37463500CE@apple.com>
To: Jeremy Orlow <jorlow@chromium.org>

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 GMT

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