function getElementAttributes(element) {
  return genericPropertyGet(
      Methods.ATTRIBUTES_GETTER, element, 'attributes', function(attributes) {
        return attributes instanceof NamedNodeMap;
      });
}
Returns an element's attributes without falling prey to things like
<form><input name="attributes"></form>. Equivalent to
`node.attributes`.
@param {!Element} element
@return {!NamedNodeMap}