IHTMLElement6::hasAttributes Method
Determines whether one or more attributes exist for the object.
Syntax
HRESULT hasAttributes( VARIANT_BOOL *pfHasAttribute );
Parameters
- pfHasAttribute
[out, retval] One of the following required values:
VARIANT_FALSE
The element does not define any attributes.VARIANT_TRUE
The element defines one or more attributes.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The IHTMLElement6::hasAttributes method determines whether the object has any attributes at all. The IHTMLElement5::hasAttribute method tests for the existence of a specified attribute.
See Also
Attribute Differences in Internet Explorer 8, IHTMLElement5::getAttribute, IHTMLElement5::hasAttribute