diff --git a/src/diff/index.js b/src/diff/index.js index f8a35ca14d..fbef9a0aca 100644 --- a/src/diff/index.js +++ b/src/diff/index.js @@ -376,8 +376,8 @@ function diffElementNodes( let checked; // Tracks entering and exiting namespaces when descending through the tree. - if (nodeType == 'svg') namespace = 2; - else if (nodeType == 'math') namespace = 3; + if (nodeType === 'svg') namespace = 2; + else if (nodeType === 'math') namespace = 3; if (excessDomChildren != null) { for (i = 0; i < excessDomChildren.length; i++) { @@ -502,7 +502,7 @@ function diffElementNodes( newVNode, oldVNode, globalContext, - nodeType == 'foreignObject' ? 1 : namespace, + nodeType === 'foreignObject' ? 1 : namespace, excessDomChildren, commitQueue, excessDomChildren