node: add normalize method (NO TEST)

Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
Francis Bouvier
2023-09-27 14:55:36 +02:00
parent 2e3d1220f6
commit 9b544db2a9
2 changed files with 14 additions and 0 deletions

View File

@@ -377,6 +377,10 @@ pub fn nodeIsEqualNode(node: *Node, other: *Node) bool {
return res;
}
pub fn nodeNormalize(node: *Node) void {
_ = nodeVtable(node).dom_node_normalize.?(node);
}
pub fn nodeRemoveChild(node: *Node, child: *Node) *Node {
var res: ?*Node = undefined;
_ = nodeVtable(node).dom_node_remove_child.?(node, child, &res);