nsRefPtr<nsAttributeTextNode> textNode = new nsAttributeTextNode(aOwnerDoc);
nsRefPtr<nsAttributeTextNode> textNode = new nsAttributeTextNode();
NS_NewAttributeContent(nsIDocument *aOwnerDoc, PRInt32 aNameSpaceID,                       nsIAtom* aAttrName, nsIContent** aResult){  NS_PRECONDITION(aAttrName, "Must have an attr name");  NS_PRECONDITION(aNameSpaceID != kNameSpaceID_Unknown, "Must know namespace");    *aResult = nsnull;  nsRefPtr<nsAttributeTextNode> textNode = new nsAttributeTextNode(aOwnerDoc);  NS_ENSURE_TRUE(textNode, NS_ERROR_OUT_OF_MEMORY);  textNode->mListener =    new nsAttributeTextNode::nsAttrChangeListener(aNameSpaceID,                                                  aAttrName,                                                  textNode);  NS_ENSURE_TRUE(textNode->mListener, NS_ERROR_OUT_OF_MEMORY);  NS_ADDREF(*aResult = textNode);  return NS_OK;}