W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2003

Re: i18n reviews of DOM 3 Core and Load&Save

From: Johnny Stenback <jst@w3c.jstenback.com>
Date: Tue, 16 Sep 2003 17:51:47 -0700
Message-ID: <3F67B023.3060808@w3c.jstenback.com>
To: Francois Yergeau <FYergeau@alis.com>
Cc: "'www-dom@w3.org'" <www-dom@w3.org>

Francois Yergeau wrote:
> LS6) In DOMSerializer, method writeURI(): there is no way to control the
> encoding that will be used to output.  The method itself doesn't have a
> parameter, and the order of priorities is Document.actualEncoding followed
> by Document.xmlEncoding. Document.actualEncoding being read-only, the user
> has no way to specify the output encoding, except if by chance
> Document.actualEncoding is null.  There should be an additional  "encoding"
> parameter (nullable, to fall back to actualEncoding and xmlEncoding) to the
> method.

DOMSerializer.writeURI() is merely a convenience method (and is now 
defined as such), if you need to pass encoding information when writing 
to a IRI, use DOMSerializer.write() and set the encoding on the DOMOutput.

-- 
jst
Received on Tuesday, 16 September 2003 20:52:17 GMT

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