Gets an attribute from an element.
Element to check.
Attribute name to retrieve.
The element's attribute value, or undefined.
undefined
Gets an attribute from an element.