Commit 701991ca authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msxml3: Implement IXMLDOMProcessingInstruction target.

parent 0d2f7322
...@@ -433,8 +433,9 @@ static HRESULT WINAPI dom_pi_get_target( ...@@ -433,8 +433,9 @@ static HRESULT WINAPI dom_pi_get_target(
IXMLDOMProcessingInstruction *iface, IXMLDOMProcessingInstruction *iface,
BSTR *p) BSTR *p)
{ {
FIXME("\n"); /* target returns the same value as nodeName property */
return E_NOTIMPL; dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
return IXMLDOMNode_get_nodeName( This->node, p );
} }
static HRESULT WINAPI dom_pi_get_data( static HRESULT WINAPI dom_pi_get_data(
......
...@@ -618,6 +618,18 @@ static void test_domdoc( void ) ...@@ -618,6 +618,18 @@ static void test_domdoc( void )
ok( V_VT(&var) == VT_NULL, "incorrect dataType type\n"); ok( V_VT(&var) == VT_NULL, "incorrect dataType type\n");
VariantClear(&var); VariantClear(&var);
/* test nodeName */
r = IXMLDOMProcessingInstruction_get_nodeName(nodePI, &str);
ok(r == S_OK, "ret %08x\n", r );
ok( !lstrcmpW( str, _bstr_("xml") ), "incorrect nodeName string\n");
SysFreeString(str);
/* test Target */
r = IXMLDOMProcessingInstruction_get_target(nodePI, &str);
ok(r == S_OK, "ret %08x\n", r );
ok( !lstrcmpW( str, _bstr_("xml") ), "incorrect target string\n");
SysFreeString(str);
/* test nodeTypeString */ /* test nodeTypeString */
r = IXMLDOMProcessingInstruction_get_nodeTypeString(nodePI, &str); r = IXMLDOMProcessingInstruction_get_nodeTypeString(nodePI, &str);
ok(r == S_OK, "ret %08x\n", r ); ok(r == S_OK, "ret %08x\n", r );
......
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