removeAttribute() does not remove from attributeNames

To change an attribute already defined I do:
-> removeAttribute('attrName') -> setAttribute('attrName', 'newVal').
The removeAttribute method is missing to remove the name also from attributeNames.
Cheers