parent->AppendChildTo(element, PR_FALSE);
parent->AppendChildTo(element, PR_FALSE, PR_FALSE);
HTMLContentSink::ProcessBASETag(const nsIParserNode& aNode){  nsresult result = NS_OK;  nsIHTMLContent* parent = nsnull;    if(mCurrentContext!=nsnull) {    parent=mCurrentContext->mStack[mCurrentContext->mStackPos-1].mContent;  }   if(parent!=nsnull) {    // Create content object    nsCOMPtr<nsIHTMLContent> element;    nsCOMPtr<nsINodeInfo> nodeInfo;    mNodeInfoManager->GetNodeInfo(NS_ConvertASCIItoUCS2("base"),                                  nsnull, kNameSpaceID_None,                                  *getter_AddRefs(nodeInfo));    result = NS_CreateHTMLElement(getter_AddRefs(element), nodeInfo);    if (NS_SUCCEEDED(result)) {      PRInt32 id;      mDocument->GetAndIncrementContentID(&id);      element->SetContentID(id);      // Add in the attributes and add the style content object to the      // head container.      element->SetDocument(mDocument, PR_FALSE, PR_TRUE);      result = AddAttributes(aNode, element);      if (NS_SUCCEEDED(result)) {        parent->AppendChildTo(element, PR_FALSE);        if(!mInsideNoXXXTag) {          nsAutoString value;          if (NS_CONTENT_ATTR_HAS_VALUE == element->GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::href, value)) {            ProcessBaseHref(value);          }          if (NS_CONTENT_ATTR_HAS_VALUE == element->GetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::target, value)) {            ProcessBaseTarget(value);          }        }      }    }  }    return result;}