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

Re: XHR: responseText encoding detection

From: Julian Reschke <julian.reschke@gmx.de>
Date: Wed, 28 Feb 2007 18:57:10 +0100
Message-ID: <45E5C276.30000@gmx.de>
To: Anne van Kesteren <annevk@opera.com>
CC: Alexey Proskuryakov <ap-carbon@rambler.ru>, public-webapi@w3.org

Anne van Kesteren schrieb:
>> For XML parsing, DOM3 Load (or another dedicated API) could provide 
>> much more control. Obviously, we cannot remove responseXML from 
>> XMLHttpRequest, but not adding more known formats sounds like a good 
>> idea to me.
> Is such control really needed? For most people having responseXML seems 
> fine. Given how widely used HTML is it makes sense to make responseXML 
> also work for text/html resources given that browsers treat text/html as 
> prescribed by HTML5.

Well, does any of the existing implementations support parsing HTML and 
returning an XML DOM? And why would you want to do that in the first place?

If we start adding new things to the spec, then please let's try not to 
add hacks, but to define good new APIs. Setting the headers comes to 
mind, or the ability to retrieve binary content...

Best regards, Julian
Received on Wednesday, 28 February 2007 17:57:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:23 UTC