Revert make-raw-html wrapping from eval.sx spec

The make-raw-html wrapper in eval-list was host-specific: it fixed
server-side HTML escaping but broke the client DOM adapter (render-expr
returns DOM nodes, not strings). The raw-html wrapping belongs in the
host (async_eval_ref.py line 94-101), not the spec.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 19:23:27 +00:00
parent 2c9d7c95a2
commit 5cca22ae6d
3 changed files with 4 additions and 136 deletions

View File

@@ -173,11 +173,8 @@
(make-thunk (expand-macro mac args env) env))
;; Render expression — delegate to active adapter.
;; Wrap in raw-html so the result keeps its type when
;; used as a value in eval position (e.g. bound to a
;; component keyword arg then rendered later).
(is-render-expr? expr)
(make-raw-html (render-expr expr env))
(render-expr expr env)
;; Fall through to function call
:else (eval-call head args env)))