From 4b7db2f2e62e7e96c5bcfa79e6bc9eeb37046f07 Mon Sep 17 00:00:00 2001 From: natxocc Date: Tue, 7 Jul 2026 10:01:19 +0200 Subject: [PATCH] Add tags again in core --- src/sigpro.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sigpro.js b/src/sigpro.js index be72d13..02e20f0 100644 --- a/src/sigpro.js +++ b/src/sigpro.js @@ -242,13 +242,13 @@ export const mount = (c, tgt) => { t.replaceChildren(i._cnt); MOUNTED.set(t, i); return i; }; -// const htmlTags = "a abbr article aside audio b blockquote br button canvas caption cite code col colgroup datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hr i iframe img input ins kbd label legend li main mark meter nav object ol optgroup option output p picture pre progress section select slot small source span strong sub summary sup svg table tbody td template textarea tfoot th thead time tr u ul video"; +const htmlTags = "a abbr article aside audio b blockquote br button canvas caption cite code col colgroup datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 header hr i iframe img input ins kbd label legend li main mark meter nav object ol optgroup option output p picture pre progress section select slot small source span strong sub summary sup svg table tbody td template textarea tfoot th thead time tr u ul video"; export const SigPro = { $, watch, batch, h, fragment, render, mount, when, each, onUnmount, val, isA, isF, isO }; if (typeof window !== "undefined") { window.SigPro = SigPro; - // htmlTags.split(" ").forEach(tag => { - // window[tag] = (props, children) => h(tag, props, children); - // }); + htmlTags.split(" ").forEach(tag => { + window[tag] = (props, children) => h(tag, props, children); + }); } \ No newline at end of file