netsurf: update parseDocumentHtml breaking change

This commit is contained in:
Pierre Tachoire
2023-10-04 16:28:18 +02:00
parent 04892c7910
commit 818d4f4af2
4 changed files with 19 additions and 16 deletions

View File

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