msxml3: Implement IXMLDOMProcessingInstruction_get_nodeName.
This commit is contained in:
parent
56da338e5c
commit
6dee6819b2
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue