rem:  tipNode.setAttribute("label", t.replace(/\s+/g, " ") ); 
add: var hbox = document.getElementById("aHTMLTooltip").firstChild; hbox.style.direction = direction; var label = hbox.firstChild; label.textContent = t;   hbox.width = ""; hbox.height = ""; hbox.width = label.boxObject.width; hbox.height = label.boxObject.height;  
context: function FillInHTMLTooltip(tipElement){  var retVal = false;  if (tipElement.namespaceURI == "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul")    return retVal;  const XLinkNS = "http://www.w3.org/1999/xlink";  var titleText = null;  var XLinkTitleText = null;  var direction = tipElement.ownerDocument.dir;    while (!titleText && !XLinkTitleText && tipElement) {    if (tipElement.nodeType == Node.ELEMENT_NODE) {      titleText = tipElement.getAttribute("title");      XLinkTitleText = tipElement.getAttributeNS(XLinkNS, "title");      var defView = tipElement.ownerDocument.defaultView;      // XXX Work around bug 350679:      // "Tooltips can be fired in documents with no view".      if (!defView)        return retVal;      direction = defView.getComputedStyle(tipElement, "")        .getPropertyValue("direction");    }    tipElement = tipElement.parentNode;  }  var texts = [titleText, XLinkTitleText];  var tipNode = document.getElementById("aHTMLTooltip");  tipNode.style.direction = direction;  for (var i = 0; i < texts.length; ++i) {    var t = texts[i];    if (t && t.search(/\S/) >= 0) {      // XXX - Short-term fix to bug 67127: collapse whitespace here      tipNode.setAttribute("label", t.replace(/\s+/g, " ") );      retVal = true;    }  }  return retVal;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/fcf69e879c1e2b39e855a08b4bdef667d9328618/browser.js/clean/suite/browser/browser.js