- From: Johnny Stenback <jst@w3c.jstenback.com>
- Date: Tue, 16 Sep 2003 17:51:47 -0700
- 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 UTC