rem: linkNode = findParentNode(event.originalTarget, "a"); 
add: while (linkNode && !(linkNode instanceof HTMLAnchorElement)) linkNode = linkNode.parentNode; 
context:   function linkNodeForClickEvent(event)  {    var target = event.target;    var linkNode;    var linkNodeText;    var isKeyPress = (event.type == "keypress");    if ( target instanceof HTMLAnchorElement ||         target instanceof HTMLAreaElement   ||         target instanceof HTMLLinkElement ) {      if (target.hasAttribute("href"))         linkNode = target;    }    else if (!(target instanceof HTMLInputElement)) {      linkNode = findParentNode(event.originalTarget, "a");      // <a> cannot be nested.  So if we find an anchor without an      // href, there is no useful <a> around the target      if (linkNode && !linkNode.hasAttribute("href"))        linkNode = null;    }    return linkNode;  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6c5c70ee0b7593044a00bc06443d8733818a7f96/contentAreaClick.js/buggy/mail/base/content/contentAreaClick.js