Re: XHR and document.xmlEncoding

On Mon, 27 Nov 2006 01:46:29 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>> Yeah, sounds like it. My suggestion would be to require that the XML  
>> Declaration be dropped. Or, if present, is set to UTF-8 (which is the  
>> encoding anyway).
>
> Actually, just making the encoding match the XML declaration, if one is  
> present, would be a lot easier...

So that's what the specification currently states. Encode it according to  
data.xmlEncoding. Where data is the Document object you passed to send().  
Since xmlEncoding is directly derived from the XML Declaration I guess  
this is a non-issue and Firefox just has to fix its bug?


>>> Perhaps, the requrement could be that the document should be encoded  
>>> to be valid - i.e. if an XML declaration is present, it should match
>>> the actual encoding?
>
> That would be ideal.  ;)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Monday, 27 November 2006 00:49:50 UTC