DomNode.getByAttributeName

Gets all nodes by an attribute name.

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

Parameters

name string

The attribute name 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