DomNode.hasAttribute

Checks whether an attribute is present within the node or not.

  1. bool hasAttribute(string name)
  2. bool hasAttribute(string name, string value)
    class DomNode
    final @trusted
    bool
    hasAttribute
    (
    string name
    ,
    string value
    )

Parameters

name string

The name of the attribute.

value string

The value of the attribute.

Return Value

Type: bool

True if the attribute is present, false otherwise.

Meta