feat: conditionals and iterators in rsx
This commit is contained in:
1 parent
cd93e469e2
commit
6b473cbdc5
3 files changed
+132
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user