context:     this.selectNodeText = function(nodeBox, node, text, index)    {        var row, range;        // If we are still inside the same node as the last search, advance the range        // to the next substring within that node        if (nodeBox == this.lastNodeBox)        {            var target = this.lastRange.startContainer;            range = this.lastRange = panelNode.ownerDocument.createRange();            range.setStart(target, index);            range.setEnd(target, index+text.length);            row = this.lastRow;        }                if (!range)        {            // Search for the first instance of the string inside the node            function findRow(node) { return node.nodeType == 1 ? node : node.parentNode; }            var search = new TextSearch(nodeBox, findRow);            row = this.lastRow = search.find(text);            range = this.lastRange = search.range;            this.lastNodeBox = nodeBox;        }        if (row)        {            var sel = panelNode.ownerDocument.defaultView.getSelection();            sel.removeAllRanges();            sel.addRange(range);            scrollIntoCenterView(row, panelNode);            return true;        }    };
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/e1d42ad3fad63b72826a4e2ed0726866484c9ac3/html.js/buggy/extension/content/firebug/html.js