netsurf: use parse helper

This commit is contained in:
Pierre Tachoire
2023-10-04 18:29:35 +02:00
parent cf8725757c
commit ac8317adf4
3 changed files with 3 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ pub fn main() !void {
defer arena.deinit();
// document
doc = try parser.documentHTMLParseFromFile(arena.allocator(), "test.html");
doc = try parser.documentHTMLParseFromFileAlloc(arena.allocator(), "test.html");
defer parser.documentHTMLClose(doc);
// remove socket file of internal server

View File

@@ -38,7 +38,7 @@ pub fn main() !void {
defer arena.deinit();
// document
doc = try parser.documentHTMLParseFromFile(arena.allocator(), "test.html");
doc = try parser.documentHTMLParseFromFileAlloc(arena.allocator(), "test.html");
defer parser.documentHTMLClose(doc);
// create JS vm

View File

@@ -38,7 +38,7 @@ test {
const apis = jsruntime.compile(DOM.Interfaces);
// document
doc = try parser.documentHTMLParseFromFile(std.testing.allocator, "test.html");
doc = try parser.documentHTMLParseFromFileAlloc(std.testing.allocator, "test.html");
defer parser.documentHTMLClose(doc);
// create JS vm