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

LSParser.parse - stringData - encoding declaration

From: Kasimier Buchcik <kbuchcik@4commerce.de>
Date: Wed, 25 Feb 2004 17:53:46 +0100
To: <www-dom@w3.org>
Message-ID: <403CD31A.1070009@4commerce.de>

Hi,

I learned that the LSSerializer should generate an encoding declaration 
of "UTF-16" if serializing a whole DOM document to a DOMString via 
LSSerializer.writeToString.

So just to have it black on white: does this imply the encoding 
declaration *has to* be existent and *has to* state "UTF-16", if parsing 
with LSParser.parse with an input.stringData holding a XML document - 
otherwise an error would be reported?


Regards,

Kasimier
Received on Wednesday, 25 February 2004 11:49:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT