hasAttributes method

Determines whether one or more attributes exist for the object.

 

Syntax

HRESULT retVal = object.hasAttributes(pfHasAttribute);

Parameters

pfHasAttribute [out, retval]

Type: VARIANT_BOOL

VARIANT_FALSE (false)

The element does not define any attributes.

VARIANT_TRUE (true)

The element defines one or more attributes.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

There are no standards that apply here.

Remarks

The IHTMLDOMTextNode3::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

Reference

getAttribute

IHTMLElement5::hasAttribute