From 61ae07fa78cfd3c82dac348e9c7abc6411ae29ab Mon Sep 17 00:00:00 2001 From: "peterv%propagandism.org" Date: Thu, 27 Jul 2006 14:58:37 +0000 Subject: [PATCH] Fix for bug 286300 (Clean up HTML tags enum and related code). r/sr=jst, a=asa. git-svn-id: svn://10.0.0.236/trunk@204898 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/suite/common/sidebar/customize.js | 2 +- mozilla/suite/common/sidebar/sidebarOverlay.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;