reparent method
Reparent the node
Implementation
@override
TagflowNode reparent([TagflowNode? newParent]) {
return TagflowTableElement(
tag: tag,
rowCount: rowCount,
columnCount: columnCount,
rows: rows.map((e) => e.reparent(this)).toList(),
spans: spans,
caption: caption?.reparent(this),
parent: newParent,
attributes: attributes,
);
}