DomNode.hasAttribute

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

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

Parameters

name string

The name of the attribute.

Return Value

Type: bool

True if the attribute is present, false otherwise.

Meta