Bug 1403067 - Remove usage of nsIDOMHTMLAnchorElement in SeaMonkey. r=IanN a=IanN
authoraceman <acelists@atlas.sk>
Sat, 03 Feb 2018 13:19:37 +0100
changeset 31353 6394caf01a8f7b7aa2b755149a9e9a92e8207b78
parent 31352 99fcd281d389f920b85639810e82d149386d357b
child 31354 30610b34592ff75a77740d18c9e256d1aa7c2691
push id383
push userclokep@gmail.com
push dateMon, 07 May 2018 21:52:48 +0000
reviewersIanN, IanN
bugs1403067, 1389650
Bug 1403067 - Remove usage of nsIDOMHTMLAnchorElement in SeaMonkey. r=IanN a=IanN Port Bug 1389650 [Remove nsIDOMHTMLAnchorElement].
editor/ui/composer/content/editor.js
--- a/editor/ui/composer/content/editor.js
+++ b/editor/ui/composer/content/editor.js
@@ -3166,18 +3166,18 @@ function FillInHTMLTooltipEditor(tooltip
         }
       }
     }
   } else {
     for (node = document.tooltipNode; node; node = node.parentNode) {
       if (ChromeUtils.getClassName(node) === "HTMLImageElement" ||
           node instanceof Ci.nsIDOMHTMLInputElement)
         tooltipText = node.getAttribute("src");
-      else if (node instanceof Ci.nsIDOMHTMLAnchorElement)
-        tooltipText = node.getAttribute("href") || node.name;
+      else if (ChromeUtils.getClassName(node) === "HTMLAnchorElement")
+        tooltipText = node.getAttribute("href") || node.getAttribute("name");
       if (tooltipText) {
         tooltip.setAttribute("label", tooltipText);
         return true;
       }
     }
   }
   return false;
 }