From 19e385f9fa7e9a906648987c91085f3f451454e5 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Wed, 7 Jun 2000 00:46:09 +0000 Subject: [PATCH] fix for #40594, switch to DOM2 r=sspitzer --- .../base/prefs/resources/content/AccountManager.js | 12 ++++++------ .../base/prefs/resources/content/SmtpServerList.js | 4 ++-- .../prefs/resources/content/am-identity-advanced.js | 2 +- .../base/prefs/resources/content/am-imap-advanced.js | 4 ++-- .../base/search/resources/content/FilterEditor.js | 2 +- .../search/resources/content/searchTermOverlay.js | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/mailnews/base/prefs/resources/content/AccountManager.js b/mailnews/base/prefs/resources/content/AccountManager.js index 55b9436982b..f7e89d1bc24 100644 --- a/mailnews/base/prefs/resources/content/AccountManager.js +++ b/mailnews/base/prefs/resources/content/AccountManager.js @@ -80,7 +80,7 @@ function onLoad() { duplicateButton = document.getElementById("duplicateButton"); deleteButton = document.getElementById("deleteButton"); setDefaultButton = document.getElementById("setDefaultButton"); - + selectFirstAccount() } @@ -101,7 +101,7 @@ function findFirstTreeItem(tree) { var treechildren; for (var i=0;i // note - I tried creating the node pre-populated, // but the tree wouldn't notice the update - dump("Removing " + serverList.firstChild.tagName + "\n"); + dump("Removing " + serverList.firstChild.localName + "\n"); if (serverList.firstChild && - serverList.firstChild.tagName.toLowerCase() == "treechildren") + serverList.firstChild.localName.toLowerCase() == "treechildren") serverList.removeChild(serverList.firstChild); var treeChildren = document.createElement("treechildren"); diff --git a/mailnews/base/prefs/resources/content/am-identity-advanced.js b/mailnews/base/prefs/resources/content/am-identity-advanced.js index 7e455b56d67..0a630024667 100644 --- a/mailnews/base/prefs/resources/content/am-identity-advanced.js +++ b/mailnews/base/prefs/resources/content/am-identity-advanced.js @@ -73,5 +73,5 @@ function onOk() function onSelected(event) { serverList.setAttribute("selectedKey", event.target.getAttribute("key")); - dump("Something selected on " + event.target.tagName + "\n"); + dump("Something selected on " + event.target.localName + "\n"); } diff --git a/mailnews/base/prefs/resources/content/am-imap-advanced.js b/mailnews/base/prefs/resources/content/am-imap-advanced.js index ee5d4e36848..a94e0cbca73 100644 --- a/mailnews/base/prefs/resources/content/am-imap-advanced.js +++ b/mailnews/base/prefs/resources/content/am-imap-advanced.js @@ -42,7 +42,7 @@ function onLoad() var slot = controls[i].id; var val = server[slot]; - if (controls[i].tagName.toLowerCase() == "checkbox") + if (controls[i].localName.toLowerCase() == "checkbox") controls[i].checked = val; else controls[i].value = val; @@ -59,7 +59,7 @@ function onOk() for (var i=0; i 0) { var target = targets[0]; - if (target.tagName == "menuitem") + if (target.localName == "menuitem") gActionTargetElement.selectedItem = target; } } else if (filter.action == nsMsgFilterAction.ChangePriority) { diff --git a/mailnews/base/search/resources/content/searchTermOverlay.js b/mailnews/base/search/resources/content/searchTermOverlay.js index 85864ffdcdd..2f37fce6a62 100644 --- a/mailnews/base/search/resources/content/searchTermOverlay.js +++ b/mailnews/base/search/resources/content/searchTermOverlay.js @@ -187,7 +187,7 @@ function removeSearchRow(index) // searchattribute to find the first var treeItemRow = searchTermElement.searchattribute; while (treeItemRow) { - if (treeItemRow.tagName == "treeitem") break; + if (treeItemRow.localName == "treeitem") break; treeItemRow = treeItemRow.parentNode; }