node: add compareDocumentPosition method (NOT IMPLEMENTED)

Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
Francis Bouvier
2023-09-26 17:16:39 +02:00
parent 7fc6f290e7
commit a0751e07e3

View File

@@ -135,6 +135,12 @@ pub const Node = struct {
const clone = parser.nodeCloneNode(self, is_deep);
return Node.toInterface(clone);
}
pub fn _compareDocumentPosition(self: *parser.Node, other: *parser.Node) void {
_ = other;
_ = self;
@panic("Not implemented node.compareDocumentPosition()");
}
};
pub const Types = generate.Tuple(.{