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