isMatchingFormattingElement method
Implementation
bool isMatchingFormattingElement(Element node1, Element node2) {
if (node1.localName != node2.localName ||
node1.namespaceUri != node2.namespaceUri) {
return false;
} else if (node1.attributes.length != node2.attributes.length) {
return false;
} else {
for (var key in node1.attributes.keys) {
if (node1.attributes[key] != node2.attributes[key]) {
return false;
}
}
}
return true;
}