msxml3: Allow to create dummy node map for <?xml ?>.
This commit is contained in:
parent
e5e0b84200
commit
64e5a6a257
|
@ -333,9 +333,10 @@ static HRESULT WINAPI dom_pi_get_attributes(
|
||||||
|
|
||||||
if (!strcmpW(name, xmlW))
|
if (!strcmpW(name, xmlW))
|
||||||
{
|
{
|
||||||
FIXME("not implemented for <?xml..?> declaration\n");
|
FIXME("created dummy map for <?xml ?>\n");
|
||||||
|
*map = create_nodemap(This->node.node);
|
||||||
SysFreeString(name);
|
SysFreeString(name);
|
||||||
return E_NOTIMPL;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
SysFreeString(name);
|
SysFreeString(name);
|
||||||
|
|
|
@ -9714,9 +9714,14 @@ static void test_get_attributes(void)
|
||||||
ok(hr == S_OK, "got %08x\n", hr);
|
ok(hr == S_OK, "got %08x\n", hr);
|
||||||
|
|
||||||
hr = IXMLDOMNode_get_attributes(node, &map);
|
hr = IXMLDOMNode_get_attributes(node, &map);
|
||||||
todo_wine ok(hr == S_OK, "got %08x\n", hr);
|
ok(hr == S_OK, "got %08x\n", hr);
|
||||||
|
|
||||||
if (hr == S_OK)
|
length = -1;
|
||||||
|
hr = IXMLDOMNamedNodeMap_get_length(map, &length);
|
||||||
|
EXPECT_HR(hr, S_OK);
|
||||||
|
todo_wine ok(length == 1, "got %d\n", length);
|
||||||
|
|
||||||
|
if (hr == S_OK && length == 1)
|
||||||
{
|
{
|
||||||
IXMLDOMAttribute *attr;
|
IXMLDOMAttribute *attr;
|
||||||
DOMNodeType type;
|
DOMNodeType type;
|
||||||
|
|
Loading…
Reference in New Issue