has_name function

Does an element have a tag name?