LSParser.parse - stringData - encoding declaration

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 UTC