def find_child_nodes_by_name(node_list, tag_name):
    """
    Returns a dom node from a dom NodeList that has a given tagName.
    :param node_list: NodeList dom object.
    :param tag_name: string
    :return: dom node with a tagName equal to tag_name
    """
    return [node for node in node_list
            if hasattr(node, 'tagName') and node.tagName == tag_name]