NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr"); if (nsnull == aInstancePtrResult) { return NS_ERROR_NULL_POINTER; } nsIHTMLContent* it = new nsHTMLScriptElement(aTag);
NS_ENSURE_ARG_POINTER(aInstancePtrResult); NS_ENSURE_ARG_POINTER(aNodeInfo);  nsIHTMLContent* it = new nsHTMLScriptElement(aNodeInfo);
NS_NewHTMLScriptElement(nsIHTMLContent** aInstancePtrResult, nsIAtom* aTag){  NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr");  if (nsnull == aInstancePtrResult) {    return NS_ERROR_NULL_POINTER;  }  nsIHTMLContent* it = new nsHTMLScriptElement(aTag);  if (nsnull == it) {    return NS_ERROR_OUT_OF_MEMORY;  }  return it->QueryInterface(kIHTMLContentIID, (void**) aInstancePtrResult);}