mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
netsurf: remove deprecated API for parsing HTML
This commit is contained in:
@@ -37,7 +37,10 @@ fn testExecFn(
|
||||
try js_env.attachObject(try js_env.getGlobal(), "window", null);
|
||||
|
||||
// document
|
||||
doc = try parser.documentHTMLParseFromFileAlloc(std.testing.allocator, "test.html");
|
||||
const file = try std.fs.cwd().openFile("test.html", .{});
|
||||
defer file.close();
|
||||
|
||||
doc = try parser.documentHTMLParseFromFile(file);
|
||||
defer parser.documentHTMLClose(doc) catch |err| {
|
||||
std.debug.print("documentHTMLClose error: {s}\n", .{@errorName(err)});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user