1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-12-15 05:43:45 +01:00

🔨 O.observedAttributes, observables

This commit is contained in:
2024-01-08 22:23:06 +01:00
parent 5e7f7558b5
commit 91f8c96eac
7 changed files with 43 additions and 44 deletions

View File

@@ -114,7 +114,7 @@ createElement.mark= function(attrs, is_open= false){
attrs= Object.entries(attrs).map(([ n, v ])=> n+`="${v}"`).join(" ");
const end= is_open ? "" : "/";
const out= env.D.createComment(`<dde:mark ${attrs}${env.ssr}${end}>`);
if(!is_open) out.end= env.D.createComment("</dde:mark>");
if(is_open) out.end= env.D.createComment("</dde:mark>");
return out;
};
export { createElement as el };