diff --git a/mozilla/suite/common/sidebar/customize.js b/mozilla/suite/common/sidebar/customize.js index 7f2880f6f54..f660d48d4d0 100644 --- a/mozilla/suite/common/sidebar/customize.js +++ b/mozilla/suite/common/sidebar/customize.js @@ -700,7 +700,7 @@ if (!CUST_DEBUG) { var indent = "| | | | | | | | | | | | | | | | | | | | | | | | | | | | + "; debug(indent.substr(indent.length - depth*2) + index + " " + node.nodeName); - if (node.nodeName != "#text") { + if (node.nodeType != Node.TEXT_NODE) { dump_attributes(node, depth); } var kids = node.childNodes; diff --git a/mozilla/suite/common/sidebar/sidebarOverlay.js b/mozilla/suite/common/sidebar/sidebarOverlay.js index 4eea4959650..29a019b002f 100644 --- a/mozilla/suite/common/sidebar/sidebarOverlay.js +++ b/mozilla/suite/common/sidebar/sidebarOverlay.js @@ -1634,7 +1634,7 @@ if (!SB_DEBUG) { var indent = "| | | | | | | | | | | | | | | | | | | | | | | | | | | | + "; debug(indent.substr(indent.length - depth*2) + index + " " + node.nodeName); - if (node.nodeName != "#text") { + if (node.nodeType != Node.TEXT_NODE) { dump_attributes(node, depth); } var kids = node.childNodes;