From f5c5951a3c1ea5ef10333eae4418fe0078e8181f Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Thu, 30 Oct 2008 21:38:23 +1100 Subject: [PATCH] mshtml: Implement IHTMLElement get_document. --- dlls/mshtml/htmlelem.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c index 4e7b747a6d0..7cc1a62abe4 100644 --- a/dlls/mshtml/htmlelem.c +++ b/dlls/mshtml/htmlelem.c @@ -579,8 +579,16 @@ static HRESULT WINAPI HTMLElement_get_onmouseup(IHTMLElement *iface, VARIANT *p) static HRESULT WINAPI HTMLElement_get_document(IHTMLElement *iface, IDispatch **p) { HTMLElement *This = HTMLELEM_THIS(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + + TRACE("(%p)->(%p)\n", This, p); + + if(!p) + return E_POINTER; + + *p = (IDispatch*)This->node.doc; + IDispatch_AddRef(*p); + + return S_OK; } static HRESULT WINAPI HTMLElement_put_title(IHTMLElement *iface, BSTR v) -- 2.11.4.GIT