rem:  case "a": linktext = getValueText(elem); linkView.addRow([linktext, elem.href, gStrings.linkAnchor, elem.target]); break; case "area": linkView.addRow([elem.alt, elem.href, gStrings.linkArea, elem.target]); break; case "input": linkView.addRow([elem.value || gStrings.linkSubmit, elem.form.getAttribute("action"), gStrings.linkSubmission, elem.form.getAttribute("target")]); break; case "link": if (elem.rel) { var rel = elem.rel.toLowerCase(); if (rel == "icon") { imageView.addRow([elem.href, gStrings.mediaLink, "", elem]); break; } if (rel == "stylesheet" || rel == "alternate stylesheet") linktext = gStrings.linkStylesheet; else linktext = gStrings.linkRel; } else linktext = gStrings.linkRev; linkView.addRow([elem.rel || elem.rev, elem.href, linktext, elem.target]); break;   case "img": imageView.addRow([elem.src, gStrings.mediaImg, (elem.hasAttribute("alt")) ? elem.alt : gStrings.notSet, elem]); break; case "input": if (elem.type == "image") imageView.addRow([elem.src, gStrings.mediaInput, (elem.hasAttribute("alt")) ? elem.alt : gStrings.notSet, elem]); break; case "applet":     if (!navigator.javaEnabled()) imageView.addRow([elem.code || elem.object, gStrings.mediaApplet, "",elem]); break; case "object": imageView.addRow([elem.data, gStrings.mediaObject, getValueText(elem), elem]); break; case "embed": imageView.addRow([elem.src, gStrings.mediaEmbed, "", elem]); break; default: if (elem.hasAttributeNS(XLinkNS, "href")) { linktext = getValueText(elem); linkView.addRow([linktext, elem.href, gStrings.linkX, ""]); } break; } 
context: function grabAll(elem){  var linktext;  // check for background images, any node may have one  var url = elem.ownerDocument.defaultView.getComputedStyle(elem, "").getPropertyCSSValue("background-image");  if (url && url.primitiveType == CSSPrimitiveValue.CSS_URI)  {    imageView.addRow([url.getStringValue(), gStrings.mediaBGImg, gStrings.notSet, elem, true]);  }  // one switch to rule them all  // XXX: these tests should use regexes to be a little more lenient wrt whitespace, see bug 177047  switch (elem.nodeName.toLowerCase())  {    // form tab    case "form":      formView.addRow([elem.name, elem.method, elem.getAttribute("action"), elem]);  // use getAttribute() because of bug 122128      break;    // link tab    case "a":      linktext = getValueText(elem);      linkView.addRow([linktext, elem.href, gStrings.linkAnchor, elem.target]);      break;    case "area":      linkView.addRow([elem.alt, elem.href, gStrings.linkArea, elem.target]);      break;    case "input":      linkView.addRow([elem.value || gStrings.linkSubmit, elem.form.getAttribute("action"), gStrings.linkSubmission, elem.form.getAttribute("target")]); // use getAttribute() due to bug 122128      break;    case "link":      if (elem.rel)      {        var rel = elem.rel.toLowerCase();        if (rel == "icon")        {          imageView.addRow([elem.href, gStrings.mediaLink, "", elem]);          break;        }        if (rel == "stylesheet" || rel == "alternate stylesheet")          linktext = gStrings.linkStylesheet;        else          linktext = gStrings.linkRel;      }      else        linktext = gStrings.linkRev;      linkView.addRow([elem.rel || elem.rev, elem.href, linktext, elem.target]);      break;    // media tab    case "img":      imageView.addRow([elem.src, gStrings.mediaImg, (elem.hasAttribute("alt")) ? elem.alt : gStrings.notSet, elem]);      break;    case "input":      if (elem.type == "image")        imageView.addRow([elem.src, gStrings.mediaInput, (elem.hasAttribute("alt")) ? elem.alt : gStrings.notSet, elem]);      break;    case "applet":      //XXX When Java is enabled, the DOM model for <APPLET> is broken. Bug #59686.      // Also, some reports of a crash with Java in Media tab (bug 136535), and mixed      // content from two hosts (bug 136539) so just drop applets from Page Info when      // Java is on. For the 1.0.1 branch; get a real fix on the trunk.      if (!navigator.javaEnabled())        imageView.addRow([elem.code || elem.object, gStrings.mediaApplet, "",elem]);      break;    case "object":      imageView.addRow([elem.data, gStrings.mediaObject, getValueText(elem), elem]);      break;    case "embed":      imageView.addRow([elem.src, gStrings.mediaEmbed, "", elem]);      break;    default:      if (elem.hasAttributeNS(XLinkNS, "href"))      {        linktext = getValueText(elem);        linkView.addRow([linktext, elem.href, gStrings.linkX, ""]);      }      break;  }  return NodeFilter.FILTER_SKIP;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/cb70fb5300aee96a05ff21520ad63f73e53889cc/pageInfo.js/clean/browser/base/content/pageInfo.js