rem: this.highlightText(word, baseNode); 
add: return this.highlightText(word, baseNode) || textFound; 
context:   highlightDoc: function (highBackColor, highTextColor, word, win)  {    if (!win)      win = window._content;     for (var i = 0; win.frames && i < win.frames.length; i++) {      this.highlightDoc(highBackColor, highTextColor, word, win.frames[i]);    }    var doc = win.document;    if (!document)      return;    if (!("body" in doc))      return;    var body = doc.body;    var count = body.childNodes.length;    this.mSearchRange = doc.createRange();    this.mStartPt = doc.createRange();    this.mEndPt = doc.createRange();    this.mSearchRange.setStart(body, 0);    this.mSearchRange.setEnd(body, count);    this.mStartPt.setStart(body, 0);    this.mStartPt.setEnd(body, 0);    this.mEndPt.setStart(body, count);    this.mEndPt.setEnd(body, count);    if (!highBackColor) {      // Remove highlighting.  We use the find API again rather than      // searching for our span elements by id so that we gain access to the      // anonymous content that nsIFind searches.      if (!this.mLastHighlightString)        return;      var retRange = null;      var finder = Components.classes["@mozilla.org/embedcomp/rangefind;1"]                             .createInstance()                             .QueryInterface(Components.interfaces.nsIFind);      while ((retRange = finder.Find(this.mLastHighlightString,                                     this.mSearchRange, this.mStartPt,                                     this.mEndPt))) {        var startContainer = retRange.startContainer;        var elem = null;        try {          elem = startContainer.parentNode;        }        catch (e) { }        if (elem && elem.getAttribute("id") == "__firefox-findbar-search-id") {          var child = null;          var docfrag = doc.createDocumentFragment();          var next = elem.nextSibling;          var parent = elem.parentNode;          while ((child = elem.firstChild)) {            docfrag.appendChild(child);          }          this.mStartPt = doc.createRange();          this.mStartPt.setStartAfter(elem);          parent.removeChild(elem);          parent.insertBefore(docfrag, next);          parent.normalize();        }        else {          // Somehow we didn't highlight this instance; just skip it.          this.mStartPt = doc.createRange();          this.mStartPt.setStart(retRange.endContainer, retRange.endOffset);        }        this.mStartPt.collapse(true);      }      return;    }    var baseNode = doc.createElement("span");    baseNode.setAttribute("style", "background-color: " + highBackColor + "; " +                                   "color: " + highTextColor + "; " +                                   "display: inline; font-size: inherit;" +                                   " padding: 0;");    baseNode.setAttribute("id", "__firefox-findbar-search-id");    this.highlightText(word, baseNode);  },
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/9b5e70170d6c77abb0a9e65766017b71c9524214/findBar.js/clean/toolkit/components/typeaheadfind/content/findBar.js