

def cloneNode(self, deep=0, parent=None):
    clone = Element(self.tagName, parentNode=parent, namespace=self.namespace, preserveCase=self.preserveCase, caseInsensitive=self.caseInsensitive)
    clone.attributes.update(self.attributes)
    if deep:
        clone.childNodes = [child.cloneNode(1, clone) for child in self.childNodes]
    else:
        clone.childNodes = []
    return clone

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/microdom.py Element.cloneNode/original