return NS_ERROR_NOT_IMPLEMENTED;
nsresult rv = EncodeToString(aEncodedString); NS_ENSURE_SUCCESS(rv, rv);   if (mIsTextWidget) return NS_OK;          PRInt32 count = mCommonAncestors.Count(); PRInt32 i; nsCOMPtr<nsIDOMNode> node; if (count > 0) node = NS_STATIC_CAST(nsIDOMNode *, mCommonAncestors.ElementAt(0));  if (node && IsTextNode(node)) { mCommonAncestors.RemoveElementAt(0);  if (mStartDepth) mStartDepth--; if (mEndDepth) mEndDepth--;  count--; }  i = count; while (i > 0) { node = NS_STATIC_CAST(nsIDOMNode *, mCommonAncestors.ElementAt(--i)); SerializeNodeStart(node, 0, -1, aContextString); }  while (i < count) { node = NS_STATIC_CAST(nsIDOMNode *, mCommonAncestors.ElementAt(i++)); SerializeNodeEnd(node, aContextString); }     nsAutoString infoString; infoString.AppendInt(mStartDepth); infoString.Append(PRUnichar(',')); infoString.AppendInt(mEndDepth); aInfoString = infoString;  return NS_OK;
nsDocumentEncoder::EncodeToStringWithContext(nsAString& aEncodedString,                                              nsAString& aContextString,                                             nsAString& aInfoString){  return NS_ERROR_NOT_IMPLEMENTED;}