[issue1433694] normalize function in minidom unlinks empty child nodes

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Patch applied to 2.6 in rev. 60995, and to 2.5-maint in rev. 60998. Thanks for reporting the problem, and for finding the bugfix! -- nosy: +akuchling resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PROTE

[issue1433694] normalize function in minidom unlinks empty child nodes

2008-02-01 Thread Malte Helmert
Malte Helmert added the comment: Here is a minimal testcase to more clearly expose the root of the problem, in case a regression test is needed. Without the patch, the assertion fails. == from xml.dom import minidom node = minidom.parseStri

[issue1433694] normalize function in minidom unlinks empty child nodes

2008-02-01 Thread Malte Helmert
Changes by Malte Helmert: -- versions: +Python 2.6 -Python 2.4 _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Uns

[issue1433694] normalize function in minidom unlinks empty child nodes

2008-02-01 Thread Malte Helmert
Malte Helmert added the comment: OK, I think I found the root cause. Node.normalize regenerates the list of children L with their previousSibling/nextSibling references from scratch; however, it fails to set the nextSibling reference for the very last element of L to None at the end. This is nece

[issue1433694] normalize function in minidom unlinks empty child nodes

2008-02-01 Thread Malte Helmert
Malte Helmert added the comment: I can reproduce the bug on trunk (r60511). At first I thought the behaviour might be caused by the testcase removing items from the children list while iterating over it, but this is not the case; the exception is raised upon the first removal already. Here is a

[issue1433694] normalize function in minidom unlinks empty child nodes

2008-01-11 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +easy _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://