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