- From: Jake Archibald <jaffathecake@gmail.com>
- Date: Thu, 19 Jun 2014 12:56:44 +0100
- To: Jonas Sicking <jonas@sicking.cc>
- Cc: Jussi Kalliokoski <jussi.kalliokoski@gmail.com>, WHATWG <whatwg@whatwg.org>
On 18 June 2014 11:08, Jonas Sicking <jonas@sicking.cc> wrote:
> On Mon, Jun 16, 2014 at 6:57 PM, Jussi Kalliokoski
> <jussi.kalliokoski@gmail.com> wrote:
> >
> > var doesFetchSupportJson = function () {
> > return fetch("data:application/json;base64,e30=").then(function
> > (response) {
> > return response.body.to("json");
> > }).then(function () {
> > return true;
> > }).catch(function () {
> > return false;
> > });
> > };
>
> I agree with this. We're told time and again that feature detection is
> important, as is the ability to polyfill. It seems like the current
> API fails both these tests.
>
Good point.
toJSON
toText
toBlob
toArrayBuffer
…works for me.
Received on Thursday, 19 June 2014 11:57:08 UTC