attributes property

Retrieves a collection of attributes of the object.

Syntax

HRESULT value = object.get_attributes(IDispatch** p);

Property values

Type: IDispatch

Address of a pointer to a variable of type IDispatch interface that receives a zero-based array of attributes applied to the object.

Remarks

The IHTMLDOMNode::attributes collection does not include the expando property. Compare to IHTMLDOMAttribute2::attributes.

The attributes collection does not expose the style object. Use the cssText property of the object's style property to retrieve the persistent representation of the cascading styles associated with an object.

Unlike other Dynamic HTML (DHTML) collections, such as all and children, the attributes collection is static. Modifications to the properties of an object are not automatically reflected by an existing reference to the attributes collection of that object.