Lightpanda: the headless browser designed for AI and automation
webapi: use the local arena for Table.collectRows
Francis Bouvierecf7dd2137a4
diff --git a/src/browser/webapi/element/html/Table.zig b/src/browser/webapi/element/html/Table.zigindex 43ea812b0..056e1015b 100644--- a/src/browser/webapi/element/html/Table.zig+++ b/src/browser/webapi/element/html/Table.zig@@ -27,7 +27,9 @@ pub fn getTBodies(self: *Table, frame: *Frame) collections.NodeLive(.child_tag)// of tfoot children.fn collectRows(self: *Table, frame: *Frame) !std.ArrayList(*Node) {var rows: std.ArrayList(*Node) = .empty;- const arena = frame.call_arena;+ // Scratch only: deleteRow reads the list before the removal (the only+ // point that can re-enter JS), so the local arena suffices.+ const arena = frame.local_arena;try self.appendSectionRows(.thead, &rows, arena);