[XML-SIG] [ pyxml-Bugs-774104 ] minidom setNamedItem unlinks
replaced attributes
SourceForge.net
noreply at sourceforge.net
Sat Jul 19 02:54:04 EDT 2003
Bugs item #774104, was opened at 2003-07-19 08:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=774104&group_id=6473
Category: DOM
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Clover (bobince)
Assigned to: Nobody/Anonymous (nobody)
Summary: minidom setNamedItem unlinks replaced attributes
Initial Comment:
Older minidoms used to prematurely unlink attributes that
were being replaced in setAttributeNode[NS] calls,
resulting in Attr objects whose ownerDocument was
None.
This was fixed by having removeAttributeNode writing to
ownerDocument after unlinking, but the same problem
remains in NamedNodeMap.setNamedItem[NS].
Suggest fix to add after line 589 of minidom.py:
old.ownerDocument = self.ownerDocument
(Again, setNamedItem and setNamedItemNS ought to be
different calls, as they may replace different nodes.)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=774104&group_id=6473
More information about the XML-SIG
mailing list