1.1 --- a/libxml2dom/__init__.py Sun Nov 12 17:38:38 2006 +0000
1.2 +++ b/libxml2dom/__init__.py Sun Nov 12 17:38:48 2006 +0000
1.3 @@ -20,7 +20,7 @@
1.4 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
1.5 """
1.6
1.7 -__version__ = "0.3.5"
1.8 +__version__ = "0.3.6"
1.9
1.10 from libxml2dom.macrolib import *
1.11 from libxml2dom.macrolib import \
1.12 @@ -293,6 +293,10 @@
1.13 else:
1.14 return Node(Node_importNode_DOM(self._node, node, deep), self.ownerDocument)
1.15
1.16 + def cloneNode(self, deep):
1.17 + # This takes advantage of the ubiquity of importNode (in spite of the DOM specification).
1.18 + return self.importNode(self, deep)
1.19 +
1.20 def insertBefore(self, tmp, oldNode):
1.21 if hasattr(tmp, "as_native_node"):
1.22 return Node(Node_insertBefore(self._node, tmp.as_native_node(), oldNode.as_native_node()), self.ownerDocument)