From 16c83fac9fd6e61203947177267da2b8c55d8408 Mon Sep 17 00:00:00 2001 From: geotre Date: Sat, 21 Oct 2023 20:39:37 +0100 Subject: [PATCH] Revert "fix(#200): use template element for verbatim (#270)" This reverts commit 8e0f471e6368c57645909f10cbcb64b0df037a09. --- karax/karax.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/karax/karax.nim b/karax/karax.nim index 385dc18..142746c 100644 --- a/karax/karax.nim +++ b/karax/karax.nim @@ -170,9 +170,8 @@ proc toDom*(n: VNode; useAttachedNode: bool; kxi: KaraxInstance = nil): Node = result = document.createTextNode(n.text) attach n elif n.kind == VNodeKind.verbatim: - var t = document.createElement("template") - t.innerHTML = n.text - result = t.content + result = document.createElement("div") + result.innerHTML = n.text attach n return result elif n.kind == VNodeKind.vthunk: