From 015469e401dba949f85c8caf50805cbb6e1bf395 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 4 Mar 2026 16:04:29 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20Undefined=20symbol:=20div=20=E2=80=94=20d?= =?UTF-8?q?elegate=20HTML=20tags=20to=20renderDOM=20in=20sxEval?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When an HTML tag like (div) appears as a kwarg value in SX wire format, callComponent evaluates it with sxEval (data mode) which doesn't handle HTML tags. Now sxEval delegates to renderDOM for any render expression (HTML tags, SVG tags, fragments, raw!, components). Co-Authored-By: Claude Opus 4.6 --- shared/static/scripts/sx.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shared/static/scripts/sx.js b/shared/static/scripts/sx.js index f3c1bd6..ca58cbc 100644 --- a/shared/static/scripts/sx.js +++ b/shared/static/scripts/sx.js @@ -457,6 +457,9 @@ return new _Thunk(expanded, env); } } + + // HTML tag or component in data position — delegate to renderDOM + if (_isRenderExpr(expr)) return renderDOM(expr, env); } // Function call