mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-30 07:31:47 +00:00
netsurf: pass encoding to the parser
This commit is contained in:
@@ -43,7 +43,7 @@ fn testExecFn(
|
||||
const file = try std.fs.cwd().openFile("test.html", .{});
|
||||
defer file.close();
|
||||
|
||||
doc = try parser.documentHTMLParse(file.reader());
|
||||
doc = try parser.documentHTMLParse(file.reader(), "UTF-8");
|
||||
defer parser.documentHTMLClose(doc) catch |err| {
|
||||
std.debug.print("documentHTMLClose error: {s}\n", .{@errorName(err)});
|
||||
};
|
||||
@@ -119,6 +119,6 @@ test "bug document html parsing #4" {
|
||||
const file = try std.fs.cwd().openFile("tests/html/bug-html-parsing-4.html", .{});
|
||||
defer file.close();
|
||||
|
||||
doc = try parser.documentHTMLParse(file.reader());
|
||||
doc = try parser.documentHTMLParse(file.reader(), null);
|
||||
parser.documentHTMLClose(doc) catch {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user