Sets an IHTMLDOMAttribute2 interface as part of the object.
HRESULT setAttributeNodeNS( IHTMLDOMAttribute *pattr, IHTMLDOMAttribute **ppretAttribute );
- [in] A pointer to the IHTMLDOMAttribute2 interface to assign.
- [out, retval] A pointer variable that receives a IHTMLDOMAttribute2 pointer to a replaced node or NULL if no attribute was replaced.
Returns one of the following values.
S_OK The operation completed successfully. W3CException_DOM_INUSE_ATTRIBUTE_ERR The specified attribute is already in use elsewhere. W3CException_DOM_NO_MODIFICATION_ALLOWED_ERR An attempt is made to modify an object that cannot be changed. W3CException_DOM_NOT_SUPPORTED_ERR The requested operation is not supported. W3CException_DOM_WRONG_DOCUMENT_ERR The node is owned by a different document and cannot be used.
If the object already contains an attribute with the same name, the new attribute replaces the original attribute.