ElementSetAttributeNode Method
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.

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.11
Syntax
public Attr SetAttributeNode(
	Attr newAttr
)

Parameters

newAttr
Type: Aspose.Html.DomAttr
The new attr.

Return Value

Type: Attr
Returns attribute
See Also