W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2004

"Re: Two tiny questions"'

From: Kasimier Buchcik <kbuchcik@4commerce.de>
Date: Mon, 22 Mar 2004 10:35:05 +0100
To: <www-dom@w3.org>
Message-ID: <405EB349.5080502@4commerce.de>


on 3/19/2004 9:55 PM Philippe Le Hegaret wrote:

> On Fri, 2004-03-19 at 11:48, Kasimier Buchcik wrote:
>>>>2. It is still unclear to me if an error (and which) should be raised if
>>>>  parsing a DOMString with the LSParser, and the encoding declaration
>>>>  states something different than "UTF-16", or not. If not: should
>>>>  xmlEncoding be set to this declared encoding?
>>>I don't think it should be an error, at most a warning. HTTP is allowed
>>>to overwrite the encoding of the XML declaration already. I would treat
>>>it the same for this case: the information in the XML declaration is
>>>overwritten by the encoding of DOMString, and is therefore simply
>>Great, all that I wanted to hear; so I'll just set 
>>Document.xmlDeclaration to "UTF-16".

This was incorrect: there is no Document.xmlDeclaration; I meant 

> Document.inputEncoding should be "UTF-16". Document.xmlEncoding should
> be whatever was in the XML declaration if any.

Ah, I see; so "ignored" in the way of "ignored as parsing information", 
but not as declared encoding.


Received on Monday, 22 March 2004 04:30:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:12 UTC