

def getElementById(self, id):
    childNodes = self.childNodes[:]
    while childNodes:
        node = childNodes.pop(0)
        if node.childNodes:
            childNodes.extend(node.childNodes)
        if (hasattr(node, 'getAttribute') and (node.getAttribute('id') == id)):
            return node

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