add: if (node && node.nodeType == Node.TEXT_NODE) { node = node.parentNode; } 
context:   function findParentNode(node, parentNode)  {    while (node) {      var nodeName = node.localName;      if (!nodeName)        return null;      nodeName = nodeName.toLowerCase();      if (nodeName == "body" || nodeName == "html" ||          nodeName == "#document") {        return null;      }      if (nodeName == parentNode)        return node;      node = node.parentNode;    }    return null;  }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/4de9d368fc351b542be9cb75a3084bb44cf88159/contentAreaUtils.js/buggy/xpfe/communicator/resources/content/contentAreaUtils.js