function hasElementAttribute(element, attrName) {
  return genericMethodCall(
      Methods.HAS_ATTRIBUTE, element, 'hasAttribute', [attrName]);
}
Returns whether an element has a specific attribute, without falling prey to
things like <form><input name="hasAttribute"></form>.
Equivalent to {@code element.hasAttribute("foo")}.
@param {!Element} element
@param {string} attrName
@return {boolean}