1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

mshtml: Implement MarkupServices_CreateMarkupContainer.

This commit is contained in:
Santino Mazza 2022-12-19 10:45:08 -03:00 committed by Alexandre Julliard
parent e2100e3f1e
commit f9a8f2f1a3
2 changed files with 14 additions and 4 deletions

View File

@ -4739,8 +4739,18 @@ static HRESULT WINAPI MarkupServices_CreateMarkupPointer(IMarkupServices *iface,
static HRESULT WINAPI MarkupServices_CreateMarkupContainer(IMarkupServices *iface, IMarkupContainer **ppMarkupContainer)
{
HTMLDocumentNode *This = impl_from_IMarkupServices(iface);
FIXME("(%p)->(%p)\n", This, ppMarkupContainer);
return E_NOTIMPL;
IHTMLDocument2 *frag;
HRESULT hres;
TRACE("(%p)->(%p)\n", This, ppMarkupContainer);
hres = IHTMLDocument3_createDocumentFragment(&This->IHTMLDocument3_iface, &frag);
if(FAILED(hres))
return hres;
IHTMLDocument2_QueryInterface(frag, &IID_IMarkupContainer, (void**)ppMarkupContainer);
IHTMLDocument2_Release(frag);
return S_OK;
}
static HRESULT WINAPI MarkupServices_CreateElement(IMarkupServices *iface,

View File

@ -8384,8 +8384,8 @@ static void test_MarkupContainer(IMarkupServices *markup_services)
HRESULT hres;
hres = IMarkupServices_CreateMarkupContainer(markup_services, &container);
todo_wine ok(hres == S_OK, "got 0x%08lx\n", hres);
todo_wine ok(container != NULL, "MarkupContainer is null.\n");
ok(hres == S_OK, "got 0x%08lx\n", hres);
ok(container != NULL, "MarkupContainer is null.\n");
if (!container) return;
hres = IMarkupContainer_QueryInterface(container, &IID_IHTMLDocument2, (void**)&markup_container_doc);