Explorar o código

fix: interpreter code for disabled and dangerous innter html

Jonathan Kelley %!s(int64=3) %!d(string=hai) anos
pai
achega
f98c3f161f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/interpreter/src/interpreter.js

+ 1 - 1
packages/interpreter/src/interpreter.js

@@ -103,7 +103,7 @@ export class Interpreter {
     if (ns === "style") {
       // @ts-ignore
       node.style[name] = value;
-    } else if (ns !== null || ns !== undefined) {
+    } else if (ns != null || ns != undefined) {
       node.setAttributeNS(ns, name, value);
     } else {
       switch (name) {