mshtml: Forward IHTMLElement6::get_tagName to IHTMLElement implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d2607433e0
commit
a3ba3ac48e
@ -4092,8 +4092,10 @@ static HRESULT WINAPI HTMLElement6_getElementsByTagNameNS(IHTMLElement6 *iface,
|
|||||||
static HRESULT WINAPI HTMLElement6_get_tagName(IHTMLElement6 *iface, BSTR *p)
|
static HRESULT WINAPI HTMLElement6_get_tagName(IHTMLElement6 *iface, BSTR *p)
|
||||||
{
|
{
|
||||||
HTMLElement *This = impl_from_IHTMLElement6(iface);
|
HTMLElement *This = impl_from_IHTMLElement6(iface);
|
||||||
FIXME("(%p)->(%p)\n", This, p);
|
|
||||||
return E_NOTIMPL;
|
TRACE("(%p)->(%p)\n", This, p);
|
||||||
|
|
||||||
|
return IHTMLElement_get_tagName(&This->IHTMLElement_iface, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLElement6_get_nodeName(IHTMLElement6 *iface, BSTR *p)
|
static HRESULT WINAPI HTMLElement6_get_nodeName(IHTMLElement6 *iface, BSTR *p)
|
||||||
|
@ -1168,15 +1168,26 @@ static IHTMLDOMNode *_clone_node(unsigned line, IUnknown *unk, VARIANT_BOOL deep
|
|||||||
static void _test_elem_tag(unsigned line, IUnknown *unk, const char *extag)
|
static void _test_elem_tag(unsigned line, IUnknown *unk, const char *extag)
|
||||||
{
|
{
|
||||||
IHTMLElement *elem = _get_elem_iface(line, unk);
|
IHTMLElement *elem = _get_elem_iface(line, unk);
|
||||||
|
IHTMLElement6 *elem6;
|
||||||
BSTR tag;
|
BSTR tag;
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
|
||||||
hres = IHTMLElement_get_tagName(elem, &tag);
|
hres = IHTMLElement_get_tagName(elem, &tag);
|
||||||
IHTMLElement_Release(elem);
|
|
||||||
ok_(__FILE__, line) (hres == S_OK, "get_tagName failed: %08x\n", hres);
|
ok_(__FILE__, line) (hres == S_OK, "get_tagName failed: %08x\n", hres);
|
||||||
ok_(__FILE__, line) (!strcmp_wa(tag, extag), "got tag: %s, expected %s\n", wine_dbgstr_w(tag), extag);
|
ok_(__FILE__, line) (!strcmp_wa(tag, extag), "got tag: %s, expected %s\n", wine_dbgstr_w(tag), extag);
|
||||||
|
|
||||||
SysFreeString(tag);
|
SysFreeString(tag);
|
||||||
|
|
||||||
|
hres = IHTMLElement_QueryInterface(elem, &IID_IHTMLElement6, (void**)&elem6);
|
||||||
|
if(SUCCEEDED(hres)) {
|
||||||
|
hres = IHTMLElement6_get_tagName(elem6, &tag);
|
||||||
|
ok_(__FILE__, line)(hres == S_OK, "(elem6) get_tagName failed: %08x\n", hres);
|
||||||
|
ok_(__FILE__, line)(!strcmp_wa(tag, extag), "(elem6) got tag: %s, expected %s\n",
|
||||||
|
wine_dbgstr_w(tag), extag);
|
||||||
|
SysFreeString(tag);
|
||||||
|
IHTMLElement6_Release(elem6);
|
||||||
|
}
|
||||||
|
|
||||||
|
IHTMLElement_Release(elem);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define test_elem_type(ifc,t) _test_elem_type(__LINE__,ifc,t)
|
#define test_elem_type(ifc,t) _test_elem_type(__LINE__,ifc,t)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user