W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

Re: [XHR2] responseText for text/html before the encoding has stabilized

From: Henri Sivonen <hsivonen@iki.fi>
Date: Fri, 30 Sep 2011 15:29:32 +0300
Message-ID: <CAJQvAucoVLrEhWa2LODWdPsKRzUbu_Lju9rV+esi=2gV+ZqvkA@mail.gmail.com>
To: public-webapps@w3.org
On Fri, Sep 30, 2011 at 3:04 PM, Anne van Kesteren <annevk@opera.com> wrote:
> I do not see why "text" and "moz-chunked-text" have to be the same. Surely
> we do not want XML encoding detection to kick in for chunks.

Does "text" and default need to be the same for responseText for
text/html and XML types? It seems annoying to have to run the <meta>
prescan or to run the XML declaration detection without running a full
parse in the "text" mode.

> Having deterministic decoding and waiting for 1024 bytes if the MIME type is
> text/html seems reasonable.

Seems reasonable for the modes that have a non-null responseXML for text/html.

Henri Sivonen
Received on Friday, 30 September 2011 12:30:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:24 UTC