Re: [whatwg] Fetch API: asHTML

On Mon, Jun 23, 2014 at 3:15 AM, Anne van Kesteren <annevk@annevk.nl> wrote:
> On Sun, Jun 22, 2014 at 6:10 AM, Adam Barth <w3c@adambarth.com> wrote:
>> I haven't been following the fetch API in detail.  Is there some
>> collective understanding of what abstraction layer fetch represents?
>
> It's at the same level as XMLHttpRequest.

XMLHttpRequest isn't particularly cleanly layered.  It's sounds like
you're not overly concerned about layering, which is probably fine.

Adam


>> For example, I could imagine that we might not want to add a
>> dependency from the fetch to the HTML parser because fetch is a lower
>> layer of the system.
>
> The API in question would be on the FetchBodyStream returned from the
> network. Adding asHTML there wouldn't pose any requirements on the
> underlying Fetch system.
>
> However, I think we should wait with adding more as* APIs until we
> have some experience with the current set of features.
>
>
> --
> http://annevankesteren.nl/

Received on Monday, 23 June 2014 15:12:42 UTC