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: Anne van Kesteren <annevk@opera.com>
Date: Fri, 30 Sep 2011 14:04:40 +0200
To: public-webapps@w3.org, "Henri Sivonen" <hsivonen@iki.fi>
Message-ID: <op.v2meh2l864w2qv@annevk-macbookpro.local>
FWIW, I am waiting for http://www.w3.org/Bugs/Public/show_bug.cgi?id=14284  
to be fixed in HTML before making changes to XMLHttpRequest.

On Thu, 29 Sep 2011 13:49:17 +0200, Henri Sivonen <hsivonen@iki.fi> wrote:
> It seems to me that all these cannot be true:
>  * responseText and responseXML use the same encoding detection rules.
>  * The "text" and default modes use the same encoding detection rules.
>  * "text" and "moz-chunked-text" use the same encoding detection rules.
>  * "moz-chunked-text" uses the same encoding for all chunks.
>  * All imaginable badly written comet apps are guaranteed to continue  
> working.
>  * responseXML considers <meta> in a deterministic way (no timer for
> bailing out before 1024 bytes if the network stalls).
>
> Which property do we give up?

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.

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


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Friday, 30 September 2011 12:05:18 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:47 GMT