nsDocumentFragment* it = new nsDocumentFragment(nodeInfo);
nsDocumentFragment* it = new nsDocumentFragment(nodeInfo, aOwnerDocument);
NS_NewDocumentFragment(nsIDOMDocumentFragment** aInstancePtrResult,                       nsIDocument* aOwnerDocument){  NS_ENSURE_ARG(aOwnerDocument);  nsNodeInfoManager *nimgr = aOwnerDocument->NodeInfoManager();  nsCOMPtr<nsINodeInfo> nodeInfo;  nsresult rv = nimgr->GetNodeInfo(nsLayoutAtoms::documentFragmentNodeName,                                   nsnull, kNameSpaceID_None,                                   getter_AddRefs(nodeInfo));  NS_ENSURE_SUCCESS(rv, rv);  nsDocumentFragment* it = new nsDocumentFragment(nodeInfo);  if (!it) {    return NS_ERROR_OUT_OF_MEMORY;  }  NS_ADDREF(*aInstancePtrResult = it);  return NS_OK;}