Re: XHR: responseText encoding detection

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