Yes, if we go with telling xhr up front for the array buffer case, I guess an enum would be slightly better.
On Fri, Sep 24, 2010 at 8:39 PM, Chris Rogers <[email protected]> wrote: > If we added xhr.asArrayBuffer, what would happen if xhr.asBlob was also > set? Don't we really want something like xhr.loadAsType with different enum > values for text, blob, array buffer, etc.? > > On Fri, Sep 24, 2010 at 5:19 PM, Michael Nordman <[email protected]>wrote: > >> With xhr.responseBlob we chose to have the caller decide up front and tell >> the xhr object how it would like the response by setting the xhr.asBlob >> attribute prior to calling send(). We could do the same with >> xhr.asArrayBuffer. >> >> On Fri, Sep 24, 2010 at 5:09 PM, Alexey Proskuryakov <[email protected]>wrote: >> >>> >>> 24.09.2010, в 16:37, Chris Rogers написал(а): >>> >>> > I was interested to know if anybody was planning on implementing that >>> attribute soon. If not, I would like to add this myself. >>> >>> The key problem to solve is how to not double the memory use of the >>> XMLHttpRequest object, while not making responseText and responseXML slow. >>> >>> See also: <https://bugs.webkit.org/show_bug.cgi?id=40954>. Do we need >>> both responseBody and responseArrayBuffer? >>> >>> - WBR, Alexey Proskuryakov >>> >>> _______________________________________________ >>> webkit-dev mailing list >>> [email protected] >>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev >>> >> >> >
_______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

