1
0
mirror of https://codeberg.org/setop/elm-scripting synced 2025-11-08 21:49:57 +00:00

Compare commits

2 Commits

Author SHA1 Message Date
5916566385 feat: can pass content as flags 2025-10-15 13:44:19 +02:00
0758e1e9b4 feat: handle innerHTML 2025-10-07 22:19:07 +02:00

6
dom.js
View File

@@ -53,8 +53,8 @@ function Node(parent, tag) {
return this; return this;
} }
var document = new Node(null, "document"); const document = new Node(null, "document");
var target = new Node(document, "target"); const target = new Node(document, "target");
const NodeKeys = new Set(Object.keys(target)); const NodeKeys = new Set(Object.keys(target));
// getElementById is only used once, to get node Elm must hook into. // getElementById is only used once, to get node Elm must hook into.
@@ -67,6 +67,6 @@ document.createTextNode = (text) => { t = new Node(null, "#text" ); t.text = tex
// workaround for elm-explorations/markdown Markdown.toHtml // workaround for elm-explorations/markdown Markdown.toHtml
global = {}; const global = {};