Skip to content

Lightpanda: the headless browser designed for AI and automation

Merge pull request #3510 from lightpanda-io/node-document

Karl Seguin72a05c7efa95
diff --cc src/browser/parser/Parser.zig
index 0bbdc97a0,67228d221..41d22c6d0
--- a/src/browser/parser/Parser.zig
+++ b/src/browser/parser/Parser.zig
@@@ -159,9 -157,8 +161,9 @@@ fn appendTextChunk(self: *Parser, paren
// Fresh text run: the first chunk lives on _data only. buf stays empty
// until (and unless) a second chunk arrives.
- const new_text = try Frame.node_factory.createTextNode(self.frame, txt);
+ const new_text = try Frame.node_factory.createTextNode(self.document, txt);
try self.frame.appendNew(parent, new_text);
+ self.inserted_since_checkpoint +|= 1;
self.pending_text = .{
.parent = parent,
.text_node = new_text.is(CData.Text).?.asCData(),