nsIFormControl *control = (nsIFormControl*)mElements.ElementAt(aIndex); if (control) { return control->QueryInterface(kIDOMNodeIID, (void**)aReturn);
nsCOMPtr<nsIDOMNode> element; nsresult result; nsCOMPtr<nsIScriptContext> scriptContext; nsCOMPtr<nsIScriptObjectOwner> owner; PRInt32 index; nsCOMPtr<nsIDocument> document; nsCOMPtr<nsIContent> content;  if (argc < 1) { return NS_ERROR_DOM_TOO_FEW_PARAMETERS_ERR;
nsFormControlList::Item(PRUint32 aIndex, nsIDOMNode** aReturn){  nsIFormControl *control = (nsIFormControl*)mElements.ElementAt(aIndex);  if (control) {    return control->QueryInterface(kIDOMNodeIID, (void**)aReturn); // keep the ref  }  *aReturn = nsnull;  return NS_OK;}