removeAttributeNode

external fun removeAttributeNode(attr: Attr): Attr(source)

The removeAttributeNode() method of the Element interface removes the specified Attr node from the element.

MDN Reference