W3C home > Mailing lists > Public > public-webapi@w3.org > July 2007

Re: [XHR2] overrideMimeType

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 28 Jul 2007 13:09:22 +0200
To: "Jonas Sicking" <jonas@sicking.cc>
Cc: "Web API WG (public)" <public-webapi@w3.org>
Message-ID: <op.tv589wew64w2qv@annevk-t60.oslo.opera.com>

On Fri, 27 Jul 2007 21:09:37 +0200, Jonas Sicking <jonas@sicking.cc> wrote:
> It does seem fairly complicated to allow it to be set after the download  
> is finished though. You do have the stream stored in .reponse[Text], but  
> at that point all encoding information has been lost. For HTML parsing  
> (which I hope the spec will support in the future) there are a pile of  
> rules used to guess the encoding, all of which would be useful to use,  
> but can't be used if all you have access to is the unencoded  
> responseBody.

It would make sense for consistency with the other methods if the method  
throws if you try to invoke it after send() has been invoked. Can that  
still be changed in implementations? And maybe also throw a SYNTAX_ERR if  
it does not match the MIME type syntax (also for consistency).


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Saturday, 28 July 2007 11:09:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:58 GMT