NS_IMPL_ISUPPORTS3(nsFormControlList, nsIDOMHTMLCollection, nsIDOMHTMLFormControlList, nsIScriptObjectOwner)
nsHTMLFormElement::QueryInterface(REFNSIID aIID, void** aInstancePtr) {    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; }
NS_IMPL_ISUPPORTS3(nsFormControlList, nsIDOMHTMLCollection, nsIDOMHTMLFormControlList, nsIScriptObjectOwner)