

def getElementsByTagName(iNode, name):
    '\n    Return a list of all child elements of C{iNode} with a name matching\n    C{name}.\n\n    Note that this implementation does not conform to the DOM Level 1 Core\n    specification because it may return C{iNode}.\n\n    @param iNode: An element at which to begin searching.  If C{iNode} has a\n        name matching C{name}, it will be included in the result.\n\n    @param name: A C{str} giving the name of the elements to return.\n\n    @return: A C{list} of direct or indirect child elements of C{iNode} with\n        the name C{name}.  This may include C{iNode}.\n    '
    matches = []
    matches_append = matches.append
    slice = [iNode]
    while (len(slice) > 0):
        c = slice.pop(0)
        if (c.nodeName == name):
            matches_append(iNode)
        slice[:0] = c.childNodes
    return matches

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/microdom.py getElementsByTagName/VarMisuse@65/329 `c`->`iNode`