From c1e38b6d244796987824a6f8c0d2631153309baf Mon Sep 17 00:00:00 2001 From: setop Date: Sun, 5 Oct 2025 01:39:20 +0200 Subject: [PATCH] feat: handle inner.HTML --- dom.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dom.js b/dom.js index 7caac64..f670a4d 100644 --- a/dom.js +++ b/dom.js @@ -21,6 +21,10 @@ function Node(parent, tag) { print(this.text); return } + if (this.innerHTML) { + print(this.innerHTML); + return + } std.printf("<%s", this.tagName) // Set.difference(other) is not avalable in qjs for (a of Object.keys(this)) { @@ -53,6 +57,8 @@ document.getElementById = (_id) => { return target} document.createElement = (tag) => new Node(null, tag); document.createTextNode = (text) => { t = new Node(null, "#text" ); t.text = text; return t } +var global = {}; + try { // here will come the Elm app code