diff --git a/extensions/transformiix/resources/buster/DiffDOM.js b/extensions/transformiix/resources/buster/DiffDOM.js index 2a5c9773040..8a29463caa4 100644 --- a/extensions/transformiix/resources/buster/DiffDOM.js +++ b/extensions/transformiix/resources/buster/DiffDOM.js @@ -50,14 +50,14 @@ function DiffNodeAndChildren(node1, node2) for (var index = 0; index < attributes.length; index++) { item = attributes.item(index); ns = item.namespaceURI; - if (ns=="") { - name = item.nodeName; - otherValue = node2.getAttribute(name); - } - else { + if (ns) { name = item.localName; otherValue = node2.getAttributeNS(ns, name); } + else { + name = item.nodeName; + otherValue = node2.getAttribute(name); + } value = item.nodeValue; if (!nsreg.test(name) && otherValue!=value) { return ErrorUp("Different values for attribute", node1, node2);