mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
node: add cloneNode method
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
@@ -340,6 +340,12 @@ pub fn nodeAppendChild(node: *Node, child: *Node) *Node {
|
||||
return res.?;
|
||||
}
|
||||
|
||||
pub fn nodeCloneNode(node: *Node, is_deep: bool) *Node {
|
||||
var res: ?*Node = undefined;
|
||||
_ = nodeVtable(node).dom_node_clone_node.?(node, is_deep, &res);
|
||||
return res.?;
|
||||
}
|
||||
|
||||
// CharacterData
|
||||
pub const CharacterData = c.dom_characterdata;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user