rem:  return paths.length ? "/" + paths.join("/") : null; 
add:  return paths.length ? "/" + paths.join("/") : null; 
context: this.getElementTreeXPath = function(element){    var paths = [];        for (; element && element.nodeType == 1; element = element.parentNode)    {        var index = 0;        for (var sibling = element.previousSibling; sibling; sibling = sibling.previousSibling)        {            if (sibling.localName == element.localName)                ++index;        }                var tagName = element.localName.toLowerCase();        var pathIndex = (index ? "[" + (index+1) + "]" : "");        paths.splice(0, 0, tagName + pathIndex);    }        return paths.length ? "/" + paths.join("/") : null;    };
meta: 7450	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7450/8237a6359bebacf3e34f1134ef713c687c8e3edb/lib.js/clean/extension/content/firebug/lib.js