[issue1390] toxml generates output that is not well formed

2008-03-19 Thread Thomas Conway
Thomas Conway <[EMAIL PROTECTED]> added the comment: On Thu, Mar 20, 2008 at 8:26 AM, Sean Reifschneider <[EMAIL PROTECTED]> wrote: > > Sean Reifschneider <[EMAIL PROTECTED]> added the comment: > > Martin: What do you th

[issue1390] toxml generates output that is not well formed

2008-02-12 Thread Thomas Conway
Thomas Conway added the comment: On Feb 13, 2008 6:27 AM, Virgil Dupras <[EMAIL PROTECTED]> wrote: > CDATASection.writexml() already raises ValueError when finding invalid data, > so it seems consistent to me to extend the behavior to Comment.writexml() That look

[issue1390] toxml generates output that is not well formed

2007-11-06 Thread Thomas Conway
Thomas Conway added the comment: I think the specification is reasonably clear: createComment may not throw an exception. The serializer must throw an exception. (Personally, I think they have it round the wrong way - every time you write a serializer you have to write code to do the check; if

[issue1390] toxml generates output that is not well formed

2007-11-06 Thread Thomas Conway
Thomas Conway added the comment: FWIW, the DOM guys considered mandating a check in createComment, but decided that the performance penalty was too great. I'm not sure I agree with them, but there you have it. Here are links to my query about the issue: http://lists.w3.org/Archives/Publi

[issue1390] toxml generates output that is not well formed

2007-11-06 Thread Thomas Conway
Thomas Conway added the comment: The W3 guys had some information that helps. The DOM3 Core specification contains the following No lexical check is done on the content of a comment and it is therefore possible to have the character sequence "--" (double-hyphen) in the content

[issue1390] toxml generates output that is not well formed

2007-11-05 Thread Thomas Conway
Thomas Conway added the comment: Hi Martin, toxml() is not part of the DOM, so it could be changed to throw an exception. However, I suggest doing nothing, for the moment - I've posted to the dom mailing list at w3, so I'll see what wisdom we get from its members. c

[issue1390] toxml generates output that is not well formed

2007-11-05 Thread Thomas Conway
Thomas Conway added the comment: Hi Martin, You write: It's not a bug in toxml, which should always serialize the DOM tree if possible. Right! In this case it is *not* possible. The generated serialization is not a well formed XML document. Having just consulted the DOM tech

[issue1390] toxml generates output that is not well formed

2007-11-04 Thread Thomas Conway
Thomas Conway added the comment: Either it is a bug in the DOM implementation, which should reject comments containing -->, a bug in toxml() which should refuse to serialize unserializable documents, or it is a bug in the documentation. cheers, Tom __ Trac

[issue1390] toxml generates output that is not well formed

2007-11-04 Thread Thomas Conway
New submission from Thomas Conway: The attached script yields a non-well-formed xml document. Added file: http://bugs.python.org/file8692/bug.py __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1390> __

[issue1390] toxml generates output that is not well formed

2007-11-04 Thread Thomas Conway
Changes by Thomas Conway: -- components: Library (Lib) nosy: drtomc severity: normal status: open title: toxml generates output that is not well formed type: behavior versions: Python 2.5 __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/