HRESULT setNamedItem( IHTMLDOMAttribute *ppNode, IHTMLDOMAttribute **newretNode );
- [in] Pointer to an IHTMLDOMAttribute interface.
- [out, retval] Address of a pointer to the previously existing IHTMLDOMAttribute if it has the same name as the new IHTMLDOMAttribute, otherwise NULL.
Returns S_OK if successful, or an error value otherwise.
An IHTMLDOMAttribute that is set with this method does not have to apply to the element.
If an IHTMLDOMAttribute with the same name is already present, it is replaced by the new IHTMLDOMAttribute.
IHTMLAttributeCollection4::setNamedItem was introduced in Microsoft Internet Explorer 6.