DomDocument.findAttrName

uint findAttrName(scope const(char)[] name) @nogc nothrow pure @safe const

Attribute id of a name (any case), 0 if the document never saw it