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

[whatwg] Fetch API: asHTML

From: Joshua Peek <josh@joshpeek.com>
Date: Fri, 20 Jun 2014 17:39:05 -0400
Message-ID: <CA+RmjJLQpFezRq5qTBgxrbN4tbFqvSPS4AtkOqdn6y83j-jfqw@mail.gmail.com>
To: WHATWG <whatwg@whatwg.org>
Hey Anne, love the direction of the Fetch API.

I'm curious what you think of an asHTML extension to the FetchBodyStream?

Parsing fragment HTML from XHRs is pretty typical. It could potential
return a DocumentFragment or if it used some streaming HTML parser, it
could emit the top level nodes as they were being parsed.

Any reasons why its a terrible idea? Or just something thats a little
to complex to tackle in the early states of Fetch?

Received on Friday, 20 June 2014 21:39:33 UTC

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