Module: wine Branch: master Commit: 0067b9505e40b0943fc5f757b77d18802176eeb4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0067b9505e40b0943fc5f757b7...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Apr 6 14:58:53 2012 +0200
mshtml: Added IHTMLFormElement::submit implementation.
---
dlls/mshtml/htmlform.c | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlform.c b/dlls/mshtml/htmlform.c index 5041345..c9f847a 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)