if (aIID.Equals(kCHTMLEncoderCID)) *aResult = new nsHTMLEncoder; else if (aIID.Equals(kCTextEncoderCID))
if (aIID.Equals(kCTextEncoderCID))
nsDocumentEncoderFactory::CreateInstance(nsISupports *aOuter,                                         REFNSIID aIID,                                         void **aResult){  if (!aResult)    return NS_ERROR_NULL_POINTER;    *aResult = 0;  if (aIID.Equals(kCHTMLEncoderCID))    *aResult = new nsHTMLEncoder;  else if (aIID.Equals(kCTextEncoderCID))    *aResult = new nsTextEncoder;  else    return NS_NOINTERFACE;  if (*aResult == NULL)    return NS_ERROR_OUT_OF_MEMORY;    return NS_OK;}