Commit 6dee6819 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msxml3: Implement IXMLDOMProcessingInstruction_get_nodeName.

parent 56da338e
......@@ -200,7 +200,8 @@ static HRESULT WINAPI xmlnode_get_nodeName(
break;
case XML_ATTRIBUTE_NODE:
case XML_ELEMENT_NODE:
str = This->node->name;
case XML_PI_NODE:
str = This->node->name;
break;
default:
FIXME("nodeName not mapped correctly (%d)\n", This->node->type);
......
......@@ -745,6 +745,12 @@ static void test_domdoc( void )
r = IXMLDOMProcessingInstruction_put_data(nodePI, _bstr_("version=\"1.0\" encoding=\"UTF-8\""));
ok(r == E_FAIL, "ret %08x\n", r );
/* test get nodeName */
r = IXMLDOMProcessingInstruction_get_nodeName(nodePI, &str);
ok( !lstrcmpW( str, _bstr_("xml") ), "incorrect nodeName string\n");
ok(r == S_OK, "ret %08x\n", r );
SysFreeString(str);
IXMLDOMProcessingInstruction_Release(nodePI);
}
......
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