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:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user