Commit 98fc7db1 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mshtml: Implement IHTMLScriptElement::get_htmlFor().

parent c1abc5a8
......@@ -157,8 +157,14 @@ static HRESULT WINAPI HTMLScriptElement_put_htmlFor(IHTMLScriptElement *iface, B
static HRESULT WINAPI HTMLScriptElement_get_htmlFor(IHTMLScriptElement *iface, BSTR *p)
{
HTMLScriptElement *This = impl_from_IHTMLScriptElement(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL;
nsAString html_str;
nsresult nsres;
TRACE("(%p)->(%p)\n", This, p);
nsAString_Init(&html_str, NULL);
nsres = nsIDOMHTMLScriptElement_GetHtmlFor(This->nsscript, &html_str);
return return_nsstr(nsres, &html_str, p);
}
static HRESULT WINAPI HTMLScriptElement_put_event(IHTMLScriptElement *iface, BSTR v)
......
......@@ -8834,6 +8834,11 @@ static void test_elems(IHTMLDocument2 *doc)
hres = IHTMLScriptElement_get_src(script, &str);
ok(hres == S_OK, "get_src failed: %08x\n", hres);
ok(!str, "src = %s\n", wine_dbgstr_w(str));
str = (BSTR)0xdeadbeef;
hres = IHTMLScriptElement_get_htmlFor(script, &str);
ok(hres == S_OK, "get_htmlFor failed: %08x\n", hres);
ok(!str, "htmlFor = %s\n", wine_dbgstr_w(str));
}
IHTMLScriptElement_Release(script);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment