B2G/gecko/browser/base/content/browser.js
/**
 * Returns true if |aMimeType| is text-based, false otherwise.
 *
 * @param aMimeType
 *        The MIME type to check.
 *
 * If adding types to this function, please also check the similar
 * function in findbar.xml
 */
Returns true if |aMimeType| is text-based, false otherwise.
@param aMimeType
The MIME type to check.

If adding types to this function, please also check the similar
function in findbar.xml
Returns true if |aMimeType| is text - based false otherwise . @param aMimeType The MIME type to check . If adding types to this function please also check the similar function in findbar . xml
function mimeTypeIsTextBased(aMimeType)
{
  return /^text\/|\+xml$/.test(aMimeType) ||
         aMimeType == "application/x-javascript" ||
         aMimeType == "application/javascript" ||
         aMimeType == "application/xml" ||
         aMimeType == "mozilla.application/cached-xul";
}
function mimeTypeIsTextBased ( aMimeType ) { return / ^text\/|\+xml$ / . test ( aMimeType ) || aMimeType == "application/x-javascript" || aMimeType == "application/javascript" || aMimeType == "application/xml" || aMimeType == "mozilla.application/cached-xul" ; }
Returns true if |aMimeType| is text-based, false otherwise.
Returns true if |aMimeType| is text - based false otherwise .