parent->AppendChildTo(content, PR_FALSE);
parent->AppendChildTo(content, PR_FALSE, PR_FALSE);
nsHTMLFragmentContentSink::FlushText(){  nsresult rv = NS_OK;  if (0 != mTextLength) {    nsIContent* content;    rv = NS_NewTextNode(&content);    if (NS_OK == rv) {            // Set the text in the text node      nsITextContent* text = nsnull;      content->QueryInterface(NS_GET_IID(nsITextContent), (void**) &text);      text->SetText(mText, mTextLength, PR_FALSE);      NS_RELEASE(text);      // Add text to its parent      nsIContent *parent = GetCurrentContent();            if (nsnull == parent) {        parent = mRoot;      }            parent->AppendChildTo(content, PR_FALSE);      NS_RELEASE(content);    }    mTextLength = 0;  }  return rv;}