rem: var node = event.target.parentNode.parentNode; if (node.localName != "treeitem" || node.getAttribute('container') == "true") return false;  
add: var tree = document.getElementById("resultsList"); var node = tree.contentView.getItemAtIndex(tree.currentIndex);  
context: function searchResultsOpenURL(event){  var node = event.target.parentNode.parentNode;  if (node.localName != "treeitem" || node.getAttribute('container') == "true")    return false;  var url = node.id;  var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService();  if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);  if (rdf)  {    var ds = rdf.GetDataSource("rdf:internetsearch");    if (ds)    {      var src = rdf.GetResource(url, true);      var prop = rdf.GetResource("http://home.netscape.com/NC-rdf#URL", true);      var target = ds.GetTarget(src, prop, true);      if (target) target = target.QueryInterface(Components.interfaces.nsIRDFLiteral);      if (target) target = target.Value;      if (target) url = target;    }  }  // Ignore "NC:" urls.  if (url.substring(0, 3) == "NC:")    return false;  if ("loadURI" in top)    top.loadURI(url);  else    top._content.location.href = url;  return true;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e0d74dbab0591d49321454ee7cde5f57910c4047/internetresults.js/clean/suite/common/search/internetresults.js