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

msxml3: Implement IXMLDOMAttribute name property.

parent 701991ca
...@@ -433,8 +433,9 @@ static HRESULT WINAPI domattr_get_name( ...@@ -433,8 +433,9 @@ static HRESULT WINAPI domattr_get_name(
IXMLDOMAttribute *iface, IXMLDOMAttribute *iface,
BSTR *p) BSTR *p)
{ {
FIXME("\n"); /* name property returns the same value as nodeName */
return E_NOTIMPL; domattr *This = impl_from_IXMLDOMAttribute( iface );
return IXMLDOMNode_get_nodeName( This->node, p );
} }
static HRESULT WINAPI domattr_get_value( static HRESULT WINAPI domattr_get_value(
......
...@@ -2128,6 +2128,18 @@ static void test_xmlTypes(void) ...@@ -2128,6 +2128,18 @@ static void test_xmlTypes(void)
ok( !lstrcmpW( str, _bstr_("attribute") ), "incorrect nodeTypeString string\n"); ok( !lstrcmpW( str, _bstr_("attribute") ), "incorrect nodeTypeString string\n");
SysFreeString(str); 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); hr = IXMLDOMAttribute_get_xml(pAttrubute, &str);
ok(hr == S_OK, "ret %08x\n", hr ); ok(hr == S_OK, "ret %08x\n", hr );
ok( !lstrcmpW( str, szAttributeXML ), "incorrect attribute xml\n"); ok( !lstrcmpW( str, szAttributeXML ), "incorrect attribute xml\n");
......
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