[issue5752] xml.dom.minidom does not escape newline characters within attribute values
report at bugs.python.org
Wed May 13 13:57:21 CEST 2009
Tomalak <M8R-t1tut01 at mailinator.com> added the comment:
The proposed behaviour is correct:
"In attribute values, the character information items
TAB (#x9), newline (#xA), and carriage-return (#xD)
are represented by "	", "
", and "
Since the behaviour is correct, it is also desirable. :-)
I don't think that this change could cause existing solution to break
since the current inconsistency in handling these characters make it
impossible to rely on this anyway.
Thanks for putting up the unit test diff.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list