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

@@ -80,7 +80,7 @@ pub const HTMLDocument = struct {
}
pub fn _getElementsByName(self: *parser.DocumentHTML, alloc: std.mem.Allocator, name: []const u8) !NodeList {
var list = try NodeList.init();
var list = NodeList.init();
errdefer list.deinit(alloc);
if (name.len == 0) return list;