hasAttribute( )

Determines if ADOMElement has named attribute. This is a DOM Level 2 method.

Interface

ADOMElement (W3C DOM: Element)

IDL definition
boolean hasAttribute(DOMString name);
JavaScript synopsis
document...elemname..HasAttribute(name)
C synopsis
ADOMBoolean ADOMhasAttribute(
  ADOMElement* elemobj,
  ADOMString name
);
Parameters
  • elemobj   The ADOMElement object.

  • name   [in] Name of attribute.

Returns

PODS_TRUE

If ADOMDOMImplementation has the attribute.

PODS_FALSE

Otherwise.

Remarks

Results from hasAttribute( ) will be unpredictable if the attribute was: (1) a style attribute property; and, (2) removed by the removeAttribute( ) method of the DOM Element interface in The W3C DOM spec and corresponding M-Business DOM calls.