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

On Tue, Nov 2, 2010 at 9:16 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 11/2/10 11:35 PM, Jonas Sicking wrote:
>>
>> So your concern is that jQuery will update to use the new API before
>> browsers implement it. And then once browsers do implement it and
>> start honoring the .responseType by making various existing properties
>> throw, things will fail?
>
> No, my concern is that browsers will implement this, and then sites that
> haven't updated their jquery, and probably never plan to do it, will start
> using the new stuff browsers have implemented.

In this particular case, if someone is using jQuery to do their XHR,
they will basically never touch the native XHR object.  Native XHR
sucks pretty badly, which is why $.get, $.post, and generally $.ajax
exist.

So, there's little chance that authors will be trying to use the new
features with old jQuery, because it's impossible without hacking down
into the native object.

~TJ

Received on Wednesday, 3 November 2010 11:16:37 UTC