rem: return (aDocument.hasAttributeNS(XLinkNS, "href")) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; 
add: return (aNode.hasAttributeNS(XLinkNS, "href")) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP; 
context: function grabAllXLinks(aDocument){  function XLinkFilter()   {    this.acceptNode = function(aDocument)    {      return (aDocument.hasAttributeNS(XLinkNS, "href")) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;    }       }  var nodeFilter = new XLinkFilter;  var iterator = aDocument.createTreeWalker(aDocument, NodeFilter.SHOW_ELEMENT, nodeFilter, true);// why doesn't this work? the same thing works in findFirstControl() :P//  var iterator = aDocument.createTreeWalker(aDocument, NodeFilter.SHOW_ELEMENT, XLinkFilter, true);  var theList = new Array();  while(iterator.nextNode())    theList = theList.concat(iterator.currentNode);  return theList;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/fb343de677438dba4666f6ee9e76711f0aefedb7/pageInfo.js/clean/xpfe/browser/resources/content/pageInfo.js