Checks whether an element has an attribute.
Element to check.
Attribute name to look for.
Returns whether elem has the attribute name.
elem
name
Checks whether an element has an attribute.