feat: conditionals and iterators in rsx

This commit is contained in:
Jonathan Kelley committed 2022-11-16 22:10:13 -08:00
1 parent cd93e469e2
commit 6b473cbdc5
3 files changed
+132 -4

No files matched your search

+2 -2
View File
@@ -172,7 +172,7 @@ export class Interpreter {
node.style = {};
}
node.style[name] = value;
} else if (ns != null || ns != undefined) {
} else if (ns != null && ns != undefined) {
node.setAttributeNS(ns, name, value);
} else {
switch (name) {
@@ -266,7 +266,7 @@ export class Interpreter {
this.AssignId(edit.path, edit.id);
break;
case "CreateElement":
if (edit.namespace !== null || edit.namespace !== undefined) {
if (edit.namespace !== null && edit.namespace !== undefined) {
this.CreateElementNs(edit.name, edit.id, edit.namespace);
} else {
this.CreateElement(edit.name, edit.id);