isCompatibleForMerge method

  1. @override
bool isCompatibleForMerge(
  1. DOMNode other
)
override

Returns true if other is compatible to call merge.

Implementation

@override
bool isCompatibleForMerge(DOMNode other) {
  if (other is DOMElement) {
    if (tag == other.tag) {
      return getAttributesSignature() == other.getAttributesSignature();
    }
  }
  return false;
}