mshtml: Don't use getElementsByTagNameNS in IHTMLDocument3::getElementsByTagName implementation.
This commit is contained in:
parent
c6005aabcd
commit
1d05cd515c
|
@ -566,9 +566,8 @@ static HRESULT WINAPI HTMLDocument3_getElementsByTagName(IHTMLDocument3 *iface,
|
|||
{
|
||||
HTMLDocument *This = impl_from_IHTMLDocument3(iface);
|
||||
nsIDOMNodeList *nslist;
|
||||
nsAString id_str, ns_str;
|
||||
nsAString id_str;
|
||||
nsresult nsres;
|
||||
static const WCHAR str[] = {'*',0};
|
||||
|
||||
TRACE("(%p)->(%s %p)\n", This, debugstr_w(v), pelColl);
|
||||
|
||||
|
@ -578,10 +577,8 @@ static HRESULT WINAPI HTMLDocument3_getElementsByTagName(IHTMLDocument3 *iface,
|
|||
}
|
||||
|
||||
nsAString_InitDepend(&id_str, v);
|
||||
nsAString_InitDepend(&ns_str, str);
|
||||
nsres = nsIDOMHTMLDocument_GetElementsByTagNameNS(This->doc_node->nsdoc, &ns_str, &id_str, &nslist);
|
||||
nsres = nsIDOMHTMLDocument_GetElementsByTagName(This->doc_node->nsdoc, &id_str, &nslist);
|
||||
nsAString_Finish(&id_str);
|
||||
nsAString_Finish(&ns_str);
|
||||
if(FAILED(nsres)) {
|
||||
ERR("GetElementByName failed: %08x\n", nsres);
|
||||
return E_FAIL;
|
||||
|
|
|
@ -6281,7 +6281,7 @@ static void test_elems(IHTMLDocument2 *doc)
|
|||
hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument3, (void**)&doc3);
|
||||
ok(hres == S_OK, "Could not get IHTMLDocument3 iface: %08x\n", hres);
|
||||
|
||||
str = a2bstr("img");
|
||||
str = a2bstr("Img");
|
||||
hres = IHTMLDocument3_getElementsByTagName(doc3, str, &col);
|
||||
ok(hres == S_OK, "getElementsByTagName(%s) failed: %08x\n", wine_dbgstr_w(str), hres);
|
||||
SysFreeString(str);
|
||||
|
|
Loading…
Reference in New Issue