DomNode.getByAttribute

Gets all nodes by an attribute.

class DomNode
final @safe
getByAttribute
(
string name
,
string value
,
bool searchChildren = false
)

Parameters

name string

The attribute name to retrieve nodes by.

value string

The value to retrieve nodes by.

searchChildren bool

If set to true, then it'll perform a nested search through children.

Return Value

Type: DomNode[]

An array of the nodes found.

Meta