dom: nodelist: use unmanaged arraylist

This commit is contained in:
Pierre Tachoire
2023-12-15 13:51:55 +01:00
parent 923296426e
commit 3ea95982d6
4 changed files with 10 additions and 10 deletions

View File

@@ -228,7 +228,7 @@ pub const Document = struct {
if (try parser.nodeType(next.?) != .element) {
continue;
}
try list.append(next.?);
try list.append(alloc, next.?);
}
}
@@ -237,7 +237,7 @@ pub const Document = struct {
// walk over the node tree fo find the node by id.
const e = try parser.documentGetElementById(self, selectors[1..]) orelse return list;
try list.append(parser.elementToNode(e));
try list.append(alloc, parser.elementToNode(e));
return list;
}