- From: Jonas Sicking <jonas@sicking.cc>
- Date: Fri, 27 Jul 2007 12:11:47 -0700
- To: "Web API WG (public)" <public-webapi@w3.org>
- Cc: Anne van Kesteren <annevk@opera.com>
Jonas Sicking wrote: > > Anne van Kesteren wrote: >> >> I've been looking at overrideMimeType implementations in Gecko and >> WebKit and it seems like they differ a bit. In Gecko it has to be >> invoked before send(), but in WebKit it would work if you invoke it >> just before getting responseXML or responseText. Neither >> implementation seems to do any input checks. >> >> If you have any opinion on how it should be specified I suppose now >> would be the time to air your thoughts. > > Of course I prefer the mozilla way :) > > It does seem fairly complicated to allow it to be set after the download > is finished though. You do have the stream stored in .reponseBody, 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. Sorry, I meant responseText in the above. / Jonas
Received on Friday, 27 July 2007 19:12:23 UTC