Ajoute un nouvel attribut attr à l'élément.
Retourne l'ancien noeud si l'attribut a été placé ou NULL .