Skip to content

Commit e68ff62

Browse files
committed
cdp: use depth param on DOM.describeNode
1 parent 04487b6 commit e68ff62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdp/domains/dom.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ fn describeNode(cmd: anytype) !void {
322322

323323
const node = try getNode(cmd.arena, bc, params.nodeId, params.backendNodeId, params.objectId);
324324

325-
return cmd.sendResult(.{ .node = bc.nodeWriter(node, .{}) }, .{});
325+
return cmd.sendResult(.{ .node = bc.nodeWriter(node, .{ .depth = params.depth }) }, .{});
326326
}
327327

328328
// An array of quad vertices, x immediately followed by y for each point, points clock-wise.

0 commit comments

Comments
 (0)