PRInt32 id; mDocument->GetAndIncrementContentID(&id); element->SetContentID(id);
element->SetContentID(mDocument->GetAndIncrementContentID());
HTMLContentSink::ProcessBASETag(const nsIParserNode& aNode){  nsresult result = NS_OK;  nsIHTMLContent* parent = nsnull;  if (mCurrentContext) {    parent = mCurrentContext->mStack[mCurrentContext->mStackPos - 1].mContent;  }  if (parent) {    // Create content object    nsCOMPtr<nsIHTMLContent> element;    nsCOMPtr<nsINodeInfo> nodeInfo;    mNodeInfoManager->GetNodeInfo(NS_LITERAL_STRING("base"), nsnull,                                  kNameSpaceID_None,                                  getter_AddRefs(nodeInfo));    result = NS_CreateHTMLElement(getter_AddRefs(element), nodeInfo, PR_FALSE);    NS_ENSURE_SUCCESS(result, 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);    NS_ENSURE_SUCCESS(result, result);    parent->AppendChildTo(element, PR_FALSE, PR_FALSE);    if (!mInsideNoXXXTag) {      nsAutoString value;      if (element->GetAttr(kNameSpaceID_None, nsHTMLAtoms::href,                           value) == NS_CONTENT_ATTR_HAS_VALUE) {        ProcessBaseHref(value);      }      if (element->GetAttr(kNameSpaceID_None, nsHTMLAtoms::target,                           value) == NS_CONTENT_ATTR_HAS_VALUE) {        ProcessBaseTarget(value);      }    }  }  return result;}