msxml3: Implement IXMLDOMAttribute name property.

This commit is contained in:
Alistair Leslie-Hughes 2008-02-16 22:31:01 +11:00 committed by Alexandre Julliard
parent 701991ca32
commit e9063b7776
2 changed files with 15 additions and 2 deletions

View file

@ -433,8 +433,9 @@ static HRESULT WINAPI domattr_get_name(
IXMLDOMAttribute *iface,
BSTR *p)
{
FIXME("\n");
return E_NOTIMPL;
/* name property returns the same value as nodeName */
domattr *This = impl_from_IXMLDOMAttribute( iface );
return IXMLDOMNode_get_nodeName( This->node, p );
}
static HRESULT WINAPI domattr_get_value(

View file

@ -2128,6 +2128,18 @@ static void test_xmlTypes(void)
ok( !lstrcmpW( str, _bstr_("attribute") ), "incorrect nodeTypeString string\n");
SysFreeString(str);
/* test nodeName */
hr = IXMLDOMAttribute_get_nodeName(pAttrubute, &str);
ok(hr == S_OK, "ret %08x\n", hr );
ok( !lstrcmpW( str, szAttribute ), "incorrect nodeName string\n");
SysFreeString(str);
/* test name property */
hr = IXMLDOMAttribute_get_name(pAttrubute, &str);
ok(hr == S_OK, "ret %08x\n", hr );
ok( !lstrcmpW( str, szAttribute ), "incorrect name string\n");
SysFreeString(str);
hr = IXMLDOMAttribute_get_xml(pAttrubute, &str);
ok(hr == S_OK, "ret %08x\n", hr );
ok( !lstrcmpW( str, szAttributeXML ), "incorrect attribute xml\n");