absorbNode method
Absorb the content of other
and appends to this node.
Implementation
@override
bool absorbNode(DOMNode other) {
if (other is DOMElement) {
if (other.isEmptyContent) return true;
addAll(other._content);
other._content!.clear();
return true;
} else if (other is TextNode) {
other.remove();
add(other);
return true;
} else {
return false;
}
}