From 9ef703edc9762731331dde6f9e71994221762402 Mon Sep 17 00:00:00 2001 From: "peterv%netscape.com" Date: Thu, 25 Oct 2001 08:40:57 +0000 Subject: [PATCH] Fix buster for null-strings in the dom. r=Pike. Not part of the build. --- extensions/transformiix/resources/buster/DiffDOM.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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);