nsDocumentFragment* it = new nsDocumentFragment(aOwnerDocument);
NS_ENSURE_SUCCESS(rv, rv);  rv = nimgr->GetNodeInfo(NS_ConvertASCIItoUCS2("#document-fragment"), nsnull, kNameSpaceID_None, *getter_AddRefs(nodeInfo)); NS_ENSURE_SUCCESS(rv, rv);  nsDocumentFragment* it = new nsDocumentFragment(aOwnerDocument, nodeInfo);
NS_NewDocumentFragment(nsIDOMDocumentFragment** aInstancePtrResult,                       nsIDocument* aOwnerDocument){  NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr");  if (nsnull == aInstancePtrResult) {    return NS_ERROR_NULL_POINTER;  }  nsDocumentFragment* it = new nsDocumentFragment(aOwnerDocument);  if (nsnull == it) {    return NS_ERROR_OUT_OF_MEMORY;  }  return it->QueryInterface(kIDOMDocumentFragmentIID,                             (void**) aInstancePtrResult);}