rem: for (var node = document.tooltipNode; node; node = node.parentNode) { if (node instanceof Components.interfaces.nsIDOMHTMLImageElement || node instanceof Components.interfaces.nsIDOMHTMLInputElement) tooltipText = node.getAttribute("src"); else if (node instanceof Components.interfaces.nsIDOMHTMLAnchorElement) tooltipText = node.getAttribute("href") || node.name; if (tooltipText) { tooltip.setAttribute("label", tooltipText); return true; 
add: if (gEditorDisplayMode == kDisplayModePreview) { for (var node = document.tooltipNode; node; node = node.parentNode) { if (node.nodeType == Node.ELEMENT_NODE) { tooltipText = node.getAttributeNS(XLinkNS, "title"); if (tooltipText && /\S/.test(tooltipText)) { tooltip.setAttribute("label", tooltipText); return true; } tooltipText = node.getAttribute("title"); if (tooltipText && /\S/.test(tooltipText)) { tooltip.setAttribute("label", tooltipText); return true; } } } } else { for (var node = document.tooltipNode; node; node = node.parentNode) { if (node instanceof Components.interfaces.nsIDOMHTMLImageElement || node instanceof Components.interfaces.nsIDOMHTMLInputElement) tooltipText = node.getAttribute("src"); else if (node instanceof Components.interfaces.nsIDOMHTMLAnchorElement) tooltipText = node.getAttribute("href") || node.name; if (tooltipText) { tooltip.setAttribute("label", tooltipText); return true; } 
context: function FillInHTMLTooltip(tooltip){  var tooltipText = null;  for (var node = document.tooltipNode; node; node = node.parentNode) {    if (node instanceof Components.interfaces.nsIDOMHTMLImageElement ||        node instanceof Components.interfaces.nsIDOMHTMLInputElement)      tooltipText = node.getAttribute("src");    else if (node instanceof Components.interfaces.nsIDOMHTMLAnchorElement)      tooltipText = node.getAttribute("href") || node.name;    if (tooltipText) {      tooltip.setAttribute("label", tooltipText);      return true;    }  }  return false;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/210209b3e0b0c90c58f2c4b2a6fa2713dd890a2c/editor.js/buggy/editor/ui/composer/content/editor.js