set_attribute_node method

set_attribute_node

Adds a new attribute node. If an attribute with that name (nodeName) is already present in the element, it is replaced by the new one.

Returns

Returns attribute

def set_attribute_node(self, new_attr):
    ...
ParameterTypeDescription
new_attraspose.html.dom.AttrThe new attr.

See Also