From 245a92a644e388740314f6d22e608e80da891740 Mon Sep 17 00:00:00 2001 From: egrs Date: Mon, 9 Mar 2026 08:31:54 +0100 Subject: [PATCH] use node.firstChild() directly per review feedback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit node is already available in scope — no need to traverse back through script.asConstElement().asConstNode(). --- src/browser/Page.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/Page.zig b/src/browser/Page.zig index 8a98aaa0..78195490 100644 --- a/src/browser/Page.zig +++ b/src/browser/Page.zig @@ -2911,7 +2911,7 @@ fn nodeIsReady(self: *Page, comptime from_parser: bool, node: *Node) !void { // Script was added via JavaScript without a src attribute. // Only skip if it has no inline content either — scripts with // textContent/text should still execute per spec. - if (script.asConstElement().asConstNode().firstChild() == null) { + if (node.firstChild() == null) { return; } }