B2G/gecko/browser/components/places/src/PlacesUIUtils.jsm
/**
   * Get the description associated with a document, as specified in a <META>
   * element.
   * @param   doc
   *          A DOM Document to get a description for
   * @returns A description string if a META element was discovered with a
   *          "description" or "httpequiv" attribute, empty string otherwise.
   */
Get the description associated with a document, as specified in a 
element.
@param   doc
A DOM Document to get a description for
@returns A description string if a META element was discovered with a
"description" or "httpequiv" attribute, empty string otherwise.
Get the description associated with a document as specified in a element . @param doc A DOM Document to get a description for @returns A description string if a META element was discovered with a " description " or " httpequiv " attribute empty string otherwise .
function PUIU_getDescriptionFromDocument(doc) {
    var metaElements = doc.getElementsByTagName("META");
    for (var i = 0; i < metaElements.length; ++i) {
      if (metaElements[i].name.toLowerCase() == "description" ||
          metaElements[i].httpEquiv.toLowerCase() == "description") {
        return metaElements[i].content;
      }
    }
    return "";
  }
function PUIU_getDescriptionFromDocument ( doc ) { var metaElements = doc . getElementsByTagName ( "META" ) ; for ( var i = 0 ; i < metaElements . length ; ++ i ) { if ( metaElements [ i ] . name . toLowerCase ( ) == "description" || metaElements [ i ] . httpEquiv . toLowerCase ( ) == "description" ) { return metaElements [ i ] . content ; } } return "" ; }
Get the description associated with a document, as specified in a <META>
 element.
Get the description associated with a document as specified in a <META > element .