dom: use the css matcher for DOM

This commit is contained in:
Pierre Tachoire
2024-03-26 10:02:15 +01:00
parent 0fa49b99bf
commit 4d5f6d42fa
6 changed files with 94 additions and 91 deletions

View File

@@ -199,7 +199,7 @@ pub const Node = struct {
}
pub fn get_childNodes(self: *parser.Node, alloc: std.mem.Allocator) !NodeList {
var list = try NodeList.init();
var list = NodeList.init();
errdefer list.deinit(alloc);
var n = try parser.nodeFirstChild(self) orelse return list;