From a358c46b9f7875f22a04467847776dcbca2521c1 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Fri, 16 Jan 2026 08:28:16 +0100 Subject: [PATCH] axnode: ignore script and style children --- src/cdp/AXNode.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cdp/AXNode.zig b/src/cdp/AXNode.zig index dc0229b6..39197ad7 100644 --- a/src/cdp/AXNode.zig +++ b/src/cdp/AXNode.zig @@ -801,6 +801,7 @@ fn writeName(axnode: AXNode, w: anytype, page: *Page) !?AXSource { .object, .progress, .meter, .main, .nav, .aside, .header, .footer, .form, .section, .article, .ul, .ol, .dl, .menu, .thead, .tbody, .tfoot, .tr, .td, .div, .span, .p, .details, .li, + .style, .script, // zig fmt: on => {}, else => { @@ -891,7 +892,7 @@ fn ignoreChildren(self: AXNode) bool { const elt = node.as(DOMNode.Element); return switch (elt.getTag()) { - .head => true, + .head, .script, .style => true, else => false, }; }