getAttributeNames

Returns the qualified names of all element's attributes. Can contain duplicates.

MDN Reference