isEquivalentNode method
Implementation
bool isEquivalentNode(DOMNode domNode, T node) {
if (!isEquivalentNodeType(domNode, node)) {
return false;
}
if (domNode is TextNode) {
return domNode.text == getNodeText(node);
}
throw UnsupportedError(
"Can't determine node equivalency: $domNode == $node");
}