aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/dom.client.moon6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dom.client.moon b/lib/dom.client.moon
index a5a319b..acdbfa4 100644
--- a/lib/dom.client.moon
+++ b/lib/dom.client.moon
@@ -24,9 +24,9 @@ element = (element) -> (...) ->
for child in *children
if 'string' == type child
- e.innerHTML ..= child
- else
- e\appendChild child
+ child = document\createTextNode child
+
+ e\appendChild child
setmetatable {}, __index: (name) =>
with val = element name