(no version information, might be only in CVS)
Adds new attribute node attr to element.
attr
name
The attribute node.
Returns the old node if the attribute has been replaced.
Raised if the node is readonly.