msxml3: Implemented xmlnode_get_ownerDocument.
This commit is contained in:
parent
7f84185aa4
commit
800463c21b
|
@ -701,8 +701,11 @@ static HRESULT WINAPI xmlnode_get_ownerDocument(
|
||||||
IXMLDOMNode *iface,
|
IXMLDOMNode *iface,
|
||||||
IXMLDOMDocument** DOMDocument)
|
IXMLDOMDocument** DOMDocument)
|
||||||
{
|
{
|
||||||
FIXME("\n");
|
xmlnode *This = impl_from_IXMLDOMNode( iface );
|
||||||
return E_NOTIMPL;
|
|
||||||
|
TRACE("%p (%p)\n", This, DOMDocument);
|
||||||
|
|
||||||
|
return DOMDocument_create_from_xmldoc(This->node->doc, (IXMLDOMDocument2**)DOMDocument);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI xmlnode_cloneNode(
|
static HRESULT WINAPI xmlnode_cloneNode(
|
||||||
|
|
|
@ -898,9 +898,7 @@ static void test_domnode( void )
|
||||||
{
|
{
|
||||||
owner = NULL;
|
owner = NULL;
|
||||||
r = IXMLDOMNode_get_ownerDocument( element, &owner );
|
r = IXMLDOMNode_get_ownerDocument( element, &owner );
|
||||||
todo_wine {
|
|
||||||
ok( r == S_OK, "get_ownerDocument return code\n");
|
ok( r == S_OK, "get_ownerDocument return code\n");
|
||||||
}
|
|
||||||
ok( owner != doc, "get_ownerDocument return\n");
|
ok( owner != doc, "get_ownerDocument return\n");
|
||||||
|
|
||||||
type = NODE_INVALID;
|
type = NODE_INVALID;
|
||||||
|
@ -1260,7 +1258,7 @@ todo_wine
|
||||||
if (element)
|
if (element)
|
||||||
IXMLDOMElement_Release( element );
|
IXMLDOMElement_Release( element );
|
||||||
if (doc)
|
if (doc)
|
||||||
IXMLDOMDocument_Release( doc );
|
ok(IXMLDOMDocument_Release( doc ) == 0, "document is not destroyed\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_refs(void)
|
static void test_refs(void)
|
||||||
|
@ -1608,7 +1606,7 @@ static void test_get_text(void)
|
||||||
r = IXMLDOMDocument_getElementsByTagName( doc, str, &node_list );
|
r = IXMLDOMDocument_getElementsByTagName( doc, str, &node_list );
|
||||||
ok( r == S_OK, "ret %08x\n", r );
|
ok( r == S_OK, "ret %08x\n", r );
|
||||||
SysFreeString(str);
|
SysFreeString(str);
|
||||||
|
|
||||||
r = IXMLDOMNodeList_QueryInterface(node_list, &IID_IDispatch, NULL);
|
r = IXMLDOMNodeList_QueryInterface(node_list, &IID_IDispatch, NULL);
|
||||||
ok( r == E_INVALIDARG, "ret %08x\n", r );
|
ok( r == E_INVALIDARG, "ret %08x\n", r );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue