From 40b22f72a91f14e01d53fc1fafbfc800a8a0684d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= Date: Fri, 17 Apr 2026 11:54:32 +0200 Subject: [PATCH] cdp: use in_aria_hidden instead of literal value --- src/cdp/AXNode.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdp/AXNode.zig b/src/cdp/AXNode.zig index ace24084..8e395e22 100644 --- a/src/cdp/AXNode.zig +++ b/src/cdp/AXNode.zig @@ -1151,11 +1151,11 @@ fn isIgnore(self: AXNode, page: *Page, cache: *DOMNode.Element.VisibilityCache, const has_aria_labelledby = elt.hasAttributeSafe(.wrap("aria-labelledby")); if (!has_role and !has_aria_label and !has_aria_labelledby) { - // Check if it has any non-ignored children + // Check if it has any non-ignored children. var it = node.childrenIterator(); while (it.next()) |child| { const axn = AXNode.fromNode(child); - if (!axn.isIgnore(page, cache, false)) { + if (!axn.isIgnore(page, cache, in_aria_hidden)) { return false; } }