setAttributes method
Implementation
bool setAttributes(Iterable<DOMAttribute> attributes) {
if (attributes.isEmpty) return true;
var anySet = false;
for (var attr in attributes) {
var wasSet = setAttribute(
attr.name,
attr.isList ? attr.values : attr.value,
);
if (wasSet) {
anySet = true;
}
}
return anySet;
}