def get_ancestor_tag_names(mention):
span = _to_span(mention)<EOL>tag_names = []<EOL>i = _get_node(span.sentence)<EOL>while i is not None:<EOL><INDENT>tag_names.insert(<NUM_LIT:0>, str(i.tag))<EOL>i = i.getparent()<EOL><DEDENT>return tag_names<EOL>
Return the HTML tag of the Mention's ancestors.

    For example, ['html', 'body', 'p'].
    If a candidate is passed in, only the ancestors of its first Mention are returned.

    :param mention: The Mention to evaluate
    :rtype: list of strings