

def cloneNode(self, deep=0, parent=None):
    d = Document()
    d.doctype = self.doctype
    if deep:
        newEl = self.documentElement.cloneNode(1, self)
    else:
        newEl = self.documentElement
    d.appendChild(newEl)
    return d

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