[New-bugs-announce] [issue5752] xml.dom.minidom does not handle newline characters in attribute values

Tomalak report at bugs.python.org
Tue Apr 14 13:13:08 CEST 2009


New submission from Tomalak <M8R-t1tut01 at mailinator.com>:

Current behavior upon toxml() is:

<foo attribute="multiline
value" />

Upon reading the document again, the new line is normalized and
collapsed into a space (according to the XML spec, section 3.3.3), which
means that it is lost.

Better behavior would be something like this (within attribute values only):

<foo attribute="multiline&#x0D;&#x0A;value" />

----------
components: XML
messages: 85964
nosy: Tomalak
severity: normal
status: open
title: xml.dom.minidom does not handle newline characters in attribute values
versions: Python 2.4, Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5752>
_______________________________________


More information about the New-bugs-announce mailing list