rem: var nodeFilter = new FormControlFilter; var iterator = theDocument.createTreeWalker(node, NodeFilter.SHOW_ELEMENT, nodeFilter, true); 
add: var iterator = theDocument.createTreeWalker(node, NodeFilter.SHOW_ELEMENT, FormControlFilter, true); 
context: function findFirstControl(node){  function FormControlFilter()   {    this.acceptNode = function(node)    {      switch (node.nodeName.toLowerCase())      {        case "input":        case "select":        case "button":        case "textarea":        case "object":          return NodeFilter.FILTER_ACCEPT;          break;        default:          return NodeFilter.FILTER_SKIP;          break;      }      return NodeFilter.FILTER_SKIP;   // placate the js compiler    }       }  var nodeFilter = new FormControlFilter;  var iterator = theDocument.createTreeWalker(node, NodeFilter.SHOW_ELEMENT, nodeFilter, true);  return iterator.nextNode();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/92f099c8ddda2a4c3900915cc306a2bfa934e300/pageInfo.js/buggy/suite/browser/pageInfo.js