From 0067b9505e40b0943fc5f757b77d18802176eeb4 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 6 Apr 2012 14:58:53 +0200 Subject: [PATCH] mshtml: Added IHTMLFormElement::submit implementation. --- dlls/mshtml/htmlform.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlform.c b/dlls/mshtml/htmlform.c index 5041345ceaf..c9f847a7bed 100644 --- a/dlls/mshtml/htmlform.c +++ b/dlls/mshtml/htmlform.c @@ -361,8 +361,17 @@ static HRESULT WINAPI HTMLFormElement_get_onreset(IHTMLFormElement *iface, VARIA static HRESULT WINAPI HTMLFormElement_submit(IHTMLFormElement *iface) { HTMLFormElement *This = impl_from_IHTMLFormElement(iface); - FIXME("(%p)->()\n", This); - return E_NOTIMPL; + nsresult nsres; + + TRACE("(%p)->()\n", This); + + nsres = nsIDOMHTMLFormElement_Submit(This->nsform); + if(NS_FAILED(nsres)) { + ERR("Submit failed: %08x\n", nsres); + return E_FAIL; + } + + return S_OK; } static HRESULT WINAPI HTMLFormElement_reset(IHTMLFormElement *iface)