Merge pull request #939 from lightpanda-io/raw-done

finalize document loading with non-HTML pages
This commit is contained in:
Karl Seguin
2025-08-12 19:09:31 +08:00
committed by GitHub

View File

@@ -608,7 +608,10 @@ pub const Page = struct {
self.clearTransferArena();
switch (self.mode) {
.raw => |buf| self.mode = .{ .raw_done = buf.items },
.raw => |buf| {
self.mode = .{ .raw_done = buf.items };
self.documentIsComplete();
},
.html => |*p| {
const html_doc = p.html_doc;
p.deinit(); // don't need the parser anymore