[XML-SIG] [ pyxml-Bugs-468299 ] cloneNode does not change ownerElement
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 05 Oct 2001 07:42:40 -0700
Bugs item #468299, was opened at 2001-10-05 07:42
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=468299&group_id=6473
Category: DOM
Group: None
Status: Open
Resolution: None
Priority: 6
Submitted By: Alexandre Fayolle (afayolle)
Assigned to: Alexandre Fayolle (afayolle)
Summary: cloneNode does not change ownerElement
Initial Comment:
It's a long time since I found a bug in 4DOM!
>>> from xml.dom.ext.reader.Sax2 import Reader
>>> d = Reader().fromString("<plum pud='ding'/>")
>>> clone = d.documentElement.cloneNode(1)
>>> print d.documentElement
<Element Node at 822b48c: Name='plum' with 1 attributes
and 0 children>
>>> print clone
<Element Node at 822c42c: Name='plum' with 1 attributes
and 0 children>
>>> print clone.attributes[0].ownerElement
<Element Node at 822b48c: Name='plum' with 1 attributes
and 0 children>
This causes Events on attributes not to be properly
propagated if they occur on a cloned branch.
I'll patch this one.
Alexandre
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=468299&group_id=6473