This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jorend
Recipients
Date 2007-03-15.03:03:57
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Thanks for the patch.

I think this is probably *not* desirable in this form.  As a side effect of writexml(), this fixes up tagNames and attributes of elements in the document.  DOM Level 3 Load and Save made the opposite decision:  "The XML data is written to a string or an output stream. Any changes or fixups made during the serialization affect only the serialized data. The Document object and its children are never altered by the serialization operation."  -- http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/load-save.html#LS-LSSerializer (first paragraph)  I think that is the right approach.

The new method Element.normalizeNamespace() isn't really a DOM method, though the appendix sort of makes it look that way.

Incomplete - no doc patch.  (I think there's also a bug in the line added to Document.writexml()-- can't Documents have children that aren't Elements?)
History
Date User Action Args
2007-08-23 15:55:55adminlinkissue1621421 messages
2007-08-23 15:55:55admincreate