Re: Two tiny questions

On Fri, 2004-03-19 at 10:08, Kasimier Buchcik wrote:
> Hi,
> 
> there are two tiny questions burning under my fingernails:
> 
> 1. Does anyone has a definition at hand about what to return if
>    DOMImplementationSource.getDOMImplementation was called with an empty
>    (or just whitespaces containing) "features" argument?

I would propose null as a return value.

> 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
ignored.

Philippe

Received on Friday, 19 March 2004 11:17:27 UTC