var count = 0;  rootElement = rootElement || content.document;  /* If recurseFrames is undefined or true, look through all child frames for microformats */ if (recurseFrames || recurseFrames === undefined) { if (rootElement.defaultView && rootElement.defaultView.frames.length > 0) { for (let i=0; i < rootElement.defaultView.frames.length; i++) { count += Microformats.count(name, rootElement.defaultView.frames[i].document, recurseFrames); } } }  /* Get the microformat nodes for the document */ var microformatNodes = []; if (Microformats[name].className) { microformatNodes = Microformats.getElementsByClassName(rootElement, Microformats[name].className); /* alternateClassName is for cases where a parent microformat is inferred by the children */ /* If we find alternateClassName, the entire document becomes the microformat */ if ((microformatNodes.length == 0) && Microformats[name].alternateClassName) { var altClass = Microformats.getElementsByClassName(rootElement, Microformats[name].alternateClassName); if (altClass.length > 0) { microformatNodes.push(rootElement); } } } else if (Microformats[name].attributeValues) { microformatNodes = Microformats.getElementsByAttribute(rootElement, Microformats[name].attributeName, Microformats[name].attributeValues); } count += microformatNodes.length; return count; 
return 0; 
  count: function(name, rootElement, recurseFrames) {    if (!Microformats[name]) {      return;    }    var count = 0;    rootElement = rootElement || content.document;    /* If recurseFrames is undefined or true, look through all child frames for microformats */    if (recurseFrames || recurseFrames === undefined) {      if (rootElement.defaultView && rootElement.defaultView.frames.length > 0) {        for (let i=0; i < rootElement.defaultView.frames.length; i++) {          count += Microformats.count(name, rootElement.defaultView.frames[i].document, recurseFrames);        }      }    }    /* Get the microformat nodes for the document */    var microformatNodes = [];    if (Microformats[name].className) {      microformatNodes = Microformats.getElementsByClassName(rootElement,                                        Microformats[name].className);      /* alternateClassName is for cases where a parent microformat is inferred by the children */      /* If we find alternateClassName, the entire document becomes the microformat */      if ((microformatNodes.length == 0) && Microformats[name].alternateClassName) {        var altClass = Microformats.getElementsByClassName(rootElement, Microformats[name].alternateClassName);        if (altClass.length > 0) {          microformatNodes.push(rootElement);         }      }    } else if (Microformats[name].attributeValues) {      microformatNodes =         Microformats.getElementsByAttribute(rootElement,                                            Microformats[name].attributeName,                                            Microformats[name].attributeValues);    }    count += microformatNodes.length;    return count;  },
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/380250f325afc8530dc2b33eb253ad24287a59fc/Microformats.js/buggy/toolkit/components/microformats/src/Microformats.js