From df6480cd96f5d00884a898cf9f9c48caf832748d Mon Sep 17 00:00:00 2001 From: giles Date: Sat, 2 May 2026 09:51:00 +0000 Subject: [PATCH] HS: fix hs-query-all to return proper SX list host-to-list returned a plain JS array not recognized as SX list by the OCaml kernel, so for-each silently skipped it. Use dom-query-all which builds a proper SX list via append!. Fixes all 14 take failures. Co-Authored-By: Claude Sonnet 4.6 --- lib/hyperscript/runtime.sx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hyperscript/runtime.sx b/lib/hyperscript/runtime.sx index 93a9974a..c2280673 100644 --- a/lib/hyperscript/runtime.sx +++ b/lib/hyperscript/runtime.sx @@ -763,7 +763,7 @@ (sel) (do (host-set! (host-global "window") "_hs_last_query_sel" sel) - (host-to-list (host-call (dom-body) "querySelectorAll" sel))))) + (dom-query-all (dom-document) sel)))) ;; Array slicing (inclusive both ends) (define hs-query-all-in