W3C home > Mailing lists > Public > public-webapi@w3.org > November 2006

Re: XHR and document.xmlEncoding

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 27 Nov 2006 01:49:32 +0100
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <op.tjngkuz464w2qv@id-c0020.orange.nl>

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
Received on Monday, 27 November 2006 00:49:50 UTC

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