DomDocument.attrId

uint attrId(scope const(char)[] lowerName) @nogc nothrow pure @safe

Attribute id of a lowercase name, adding it if unknown. 0 if out of memory.