getElementAttribute function
Implementation
String? getElementAttribute(Element element, Object? key) {
if (key == null) return null;
if (key is RegExp) {
return getElementAttributeRegExp(element, key);
} else {
return getElementAttributeStr(element, key.toString());
}
}