Skip to content

Commit

Permalink
Revert "fix(#200): use template element for verbatim (#270)" (#274)
Browse files Browse the repository at this point in the history
This reverts commit 8e0f471.
  • Loading branch information
geotre committed Oct 21, 2023
1 parent 876ce3c commit ca6528d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions karax/karax.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ca6528d

Please sign in to comment.