We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5b1acb commit e2d47e1Copy full SHA for e2d47e1
src/browser/page.zig
@@ -701,8 +701,7 @@ pub const Page = struct {
701
// so we load a blank document to navigate away from any prior page.
702
self.mode = .{ .parsed = {} };
703
704
- var fbs = std.io.fixedBufferStream("");
705
- const html_doc = try parser.documentHTMLParse(fbs.reader(), "utf-8");
+ const html_doc = try parser.documentHTMLParseFromStr("");
706
try self.setDocument(html_doc);
707
708
self.documentIsComplete();
@@ -768,10 +767,6 @@ pub const Page = struct {
768
767
769
}
770
},
771
- .pre => {
772
- // we didn't get any data.
773
- self.documentIsComplete();
774
- },
775
else => {
776
log.err(.app, "unreachable mode", .{ .mode = self.mode });
777
unreachable;
0 commit comments