W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2014

Re: [whatwg] Fetch: asFormData()

From: Domenic Denicola <domenic@domenicdenicola.com>
Date: Wed, 25 Jun 2014 15:31:10 +0000
To: Anne van Kesteren <annevk@annevk.nl>
Message-ID: <1403710270554.68648@domenicdenicola.com>
Cc: WHATWG <whatwg@whatwg.org>, Jake Archibald <jaffathecake@gmail.com>
From: annevankesteren@gmail.com <annevankesteren@gmail.com> on behalf of Anne van Kesteren <annevk@annevk.nl>

> I expect the common usage scenario to be the page sending such data to a service worker. Note that we have to care about the server side now we have this proxy.

That is a great point. My uneasiness has been dispelled. From this perspective, you are conceptually just reconstituting the data in its original form, not parsing it. And servers manipulate form data all the time.

What about asURLSearchParams()? It seems qualitatively different, because if a form sends form data in a body, then parsing it as form data makes sense. But asURLSearchParams() seems like it is instead parsing a form-data body as a query string representation, which was not its original format. Servers manipulate query strings all the time too, but they usually don't manipulate request bodies as if they were query strings.
Received on Wednesday, 25 June 2014 15:31:40 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:21 UTC