DOMElement.HasAttribute

Syntax variant: By name

Syntax:

HasAttribute(<Name>)

Parameters:

<Name> (required)

Type: String.
An attribute name.

Syntax variant: By local name and namespace URI

Syntax:

HasAttribute(<NamespaceURI>, <LocalName>)

Parameters:

<NamespaceURI> (required)

Type: String.
Namespace URI.

<LocalName> (required)

Type: String.
An attribute local name.

Description of method variant:

Defines whether an attribute with the specified name exists in this element.

Returned value:

Type: Boolean.
True, if the attribute with the specified name explicitly exists in the element or has a default value; False - otherwise.

Description:

Defines whether an attribute with the specified name exists in this element.

Availability:

Server, thick client, external connection, Mobile application (server).

    

1C:Enterprise Developer's Community