absorbNode method
Absorb the content of other
and appends to this node.
Implementation
@override
bool absorbNode(DOMNode other) {
if (other is TextNode) {
text += other.text;
other.text = '';
return true;
} else if (other is TemplateNode) {
template.addAll(other.template.nodes);
other.template.clear();
return true;
} else if (other is DOMElement) {
text += other.text;
other.clearNodes();
return true;
} else {
return false;
}
}