nsHTMLFormElement::QueryInterface(REFNSIID aIID, void** aInstancePtr)
nsresult nsFormControlList::QueryInterface(REFNSIID aIID, void** aInstancePtr)
nsHTMLFormElement::QueryInterface(REFNSIID aIID, void** aInstancePtr){  // Note that this has to stay above the generic element  // QI macro, since it overrides the nsIJSScriptObject implementation  // from the generic element.  if (aIID.Equals(kIJSScriptObjectIID)) {    nsIJSScriptObject* tmp = this;    *aInstancePtr = (void*) tmp;    AddRef();    return NS_OK;  }                                                               NS_IMPL_HTML_CONTENT_QUERY_INTERFACE(aIID, aInstancePtr, this)  if (aIID.Equals(kIFormIID)) {    *aInstancePtr = (void*)(nsIForm*)this;    AddRef();    return NS_OK;  }   else if (aIID.Equals(kIDOMHTMLFormElementIID)) {    *aInstancePtr = (void*)(nsIDOMHTMLFormElement*)this;    AddRef();    return NS_OK;  }   else if (aIID.Equals(kIDOMNSHTMLFormElementIID)) {    *aInstancePtr = (void*)(nsIDOMNSHTMLFormElement*)this;    AddRef();    return NS_OK;  }  return NS_NOINTERFACE;}