rem: break; case "input": if ((event.target.type.toLowerCase() == "text" || event.target.type == "") && event.detail == 2 && event.button == 0 && event.target.value.length == 0) { prefillTextBox(target); } 
context:  function contentAreaClick(event)  {   var target = event.target;   var linkNode;   var local_name = target.localName;   if (local_name) {     local_name = local_name.toLowerCase();   }   switch (local_name) {     case "a":     case "area":     case "link":       if (target.hasAttribute("href"))          linkNode = target;       break;     case "input":       if ((event.target.type.toLowerCase() == "text" || event.target.type == "") // text field           && event.detail == 2 // double click           && event.button == 0 // left mouse button           && event.target.value.length == 0) { // no text has been entered         prefillTextBox(target); // prefill the empty text field if possible       }       break;     default:       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;       break;   }   if (linkNode) {     handleLinkClick(event, linkNode.href, linkNode);     return true;   } else {     // Try simple XLink     var href;     linkNode = target;     while (linkNode) {       if (linkNode.nodeType == Node.ELEMENT_NODE) {         href = linkNode.getAttributeNS("http://www.w3.org/1999/xlink", "href");         break;       }       linkNode = linkNode.parentNode;     }     if (href && href != "") {       href = makeURLAbsolute(target.baseURI,href);       handleLinkClick(event, href, null);       return true;     }   }   if (gPrefService && event.button == 1 &&       !findParentNode(event.originalTarget, "scrollbar") &&       gPrefService.getBoolPref("middlemouse.contentLoadURL")) {     if (middleMousePaste(event)) {       event.preventBubble();     }   }   return true; }
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/3701dd04cee7a04b91f1dae712758099c22dc0b7/browser.js/buggy/browser/base/content/browser.js