[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2017-03-15 Thread Berker Peksag
Berker Peksag added the comment: Thanks for your detective work, Craig. MvL is correct that those classes should be created via a Document object. I'm marking issue 15290 as a duplicate of this. Note that we can reopen this if you'd like to propose a documentation patch or PR to make the curr

[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2017-03-05 Thread Craig Rodrigues
Craig Rodrigues added the comment: This looks like a duplicate of https://bugs.python.org/issue15290 . 15290 was closed as invalid, and the submitter was told that the code should be changed to not rely on creating elements outside of the document interface. I encountered the same problem when

[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2015-03-07 Thread Claudiu Popa
Changes by Claudiu Popa : -- nosy: +Claudiu.Popa versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ ___ P

[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2014-02-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2012-05-20 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +needs review stage: needs patch -> patch review versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___

[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2012-05-20 Thread Alexandre Zani
Alexandre Zani added the comment: This patch allows the cloning of elements that do not have a document owner. If a node does not have a document owner, a new document owner is created for the clone. -- keywords: +patch Added file: http://bugs.python.org/file25651/orphan_node_clone.pa

[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2011-05-03 Thread Alexandre Zani
Changes by Alexandre Zani : -- nosy: +Alexandre.Zani ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2010-07-08 Thread Mark Lawrence
Mark Lawrence added the comment: Has this simply slipped under the radar? -- nosy: +BreamoreBoy, loewis stage: -> needs patch versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker __

[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2009-01-05 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : It seems impossible to clone an Element created without a document: >>> Element('foo').cloneNode(False) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.5/xml/dom/minidom.py", line 211, in cloneNode return