rem: else if (elem instanceof nsIInputElement) 
add: else if (elem instanceof nsIInputElement || elem instanceof nsIButtonElement) 
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 swi^H^H^Hif-else to rule them all  if (elem instanceof nsIAnchorElement)  {    linktext = getValueText(elem);    linkView.addRow([linktext, getAbsoluteURL(elem.href, elem), gStrings.linkAnchor, elem.target, elem.accessKey]);  }  else if (elem instanceof nsIImageElement)  {    imageView.addRow([getAbsoluteURL(elem.src, elem), gStrings.mediaImg, (elem.hasAttribute("alt")) ? elem.alt : gStrings.notSet, elem, false]);  }  else if (elem instanceof nsIAreaElement)  {    linkView.addRow([elem.alt, getAbsoluteURL(elem.href, elem), gStrings.linkArea, elem.target]);  }  else if (elem instanceof nsILinkElement)  {    if (elem.rel)    {      var rel = elem.rel;      if (/\bicon\b/i.test(rel))        imageView.addRow([getAbsoluteURL(elem.href, elem), gStrings.mediaLink, "", elem, false]);      else if (/\bstylesheet\b/i.test(rel))        linkView.addRow([elem.rel, getAbsoluteURL(elem.href, elem), gStrings.linkStylesheet, elem.target]);      else        linkView.addRow([elem.rel, getAbsoluteURL(elem.href, elem), gStrings.linkRel, elem.target]);    }    else      linkView.addRow([elem.rev, getAbsoluteURL(elem.href, elem), gStrings.linkRev, elem.target]);  }  else if (elem instanceof nsIInputElement)  {    if (/^image$/i.test(elem.type))      imageView.addRow([getAbsoluteURL(elem.src, elem), gStrings.mediaInput, (elem.hasAttribute("alt")) ? elem.alt : gStrings.notSet, elem, false]);    else if (/^submit$/i.test(elem.type))      linkView.addRow([elem.value || gStrings.linkSubmit, getAbsoluteURL(elem.form.getAttribute("action"), elem), gStrings.linkSubmission, elem.form.getAttribute("target")]); // use getAttribute() due to bug 122128  }  else if (elem instanceof nsIFormElement)  {    formView.addRow([elem.name, elem.method, getAbsoluteURL(elem.getAttribute("action"), elem), elem]);  // use getAttribute() because of bug 122128  }  else if (elem instanceof nsIAppletElement)  {    //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([getAbsoluteURL(elem.code || elem.object, elem), gStrings.mediaApplet, "", elem, false]);  }  else if (elem instanceof nsIObjectElement)  {    imageView.addRow([getAbsoluteURL(elem.data, elem), gStrings.mediaObject, getValueText(elem), elem, false]);  }  else if (elem instanceof nsIEmbedElement)  {    imageView.addRow([getAbsoluteURL(elem.src, elem), gStrings.mediaEmbed, "", elem, false]);  }  else    if (elem.hasAttributeNS(XLinkNS, "href"))    {      linktext = getValueText(elem);      linkView.addRow([linktext, getAbsoluteURL(elem.href, elem), gStrings.linkX, ""]);    }  return NodeFilter.FILTER_ACCEPT;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/a32deaaa0c48e0a4f9d913deba3c11be6f38ac98/pageInfo.js/buggy/xpfe/browser/resources/content/pageInfo.js