rem: return aWalker.currentNode && "id" in aWalker.currentNode && re.test(aWalker.currentNode.id); 
add: var node = aWalker.currentNode; if (!node) return false;  if (node.nodeType != Components.interfaces.nsIDOMNode.ELEMENT_NODE) return false;  for (var i = 0; i < node.attributes.length; i++) { var attr = node.attributes[i]; if (attr.isId && re.test(attr.nodeValue)) { return true; } }  return false; 
context:   doFindElementById: function(aWalker)  {    var re = new RegExp(this.mFindParams[0], "i");    return aWalker.currentNode           && "id" in aWalker.currentNode           && re.test(aWalker.currentNode.id);  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/93e81943ba0fec4073419d199ee3ea9f50fd7583/dom.js/buggy/extensions/inspector/resources/content/viewers/dom/dom.js