fix: statement problem
This commit is contained in:
1 parent
e03f8ca90c
commit
dd9f0f362e
1 file changed
+2
-1
@@ -102,10 +102,11 @@ export class Interpreter {
|
|||||||
SetAttribute(root, field, value, ns) {
|
SetAttribute(root, field, value, ns) {
|
||||||
const name = field;
|
const name = field;
|
||||||
const node = this.nodes[root];
|
const node = this.nodes[root];
|
||||||
|
console.log(ns);
|
||||||
if (ns === "style") {
|
if (ns === "style") {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
node.style[name] = value;
|
node.style[name] = value;
|
||||||
} else if (ns != null || ns !== undefined) {
|
} else if (ns != null || ns != undefined) {
|
||||||
node.setAttributeNS(ns, name, value);
|
node.setAttributeNS(ns, name, value);
|
||||||
} else {
|
} else {
|
||||||
switch (name) {
|
switch (name) {
|
||||||
|
|||||||
Reference in new issue
Block a user