Commit f5a2f4a2 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Reimplement IXMLDOMDocument::createDocumentFragment() over ::createNode().

parent 16d83dc7
......@@ -1065,27 +1065,16 @@ static HRESULT WINAPI domdoc_createElement(
static HRESULT WINAPI domdoc_createDocumentFragment(
IXMLDOMDocument2 *iface,
IXMLDOMDocumentFragment** docFrag )
IXMLDOMDocumentFragment** frag )
{
domdoc *This = impl_from_IXMLDOMDocument2( iface );
xmlNodePtr xmlnode;
TRACE("%p\n", iface);
if(!docFrag)
return E_INVALIDARG;
*docFrag = NULL;
VARIANT type;
xmlnode = xmlNewDocFragment(get_doc( This ) );
TRACE("(%p)->(%p)\n", This, frag);
if(!xmlnode)
return E_FAIL;
xmldoc_add_orphan(xmlnode->doc, xmlnode);
*docFrag = (IXMLDOMDocumentFragment*)create_doc_fragment(xmlnode);
return S_OK;
V_VT(&type) = VT_I1;
V_I1(&type) = NODE_DOCUMENT_FRAGMENT;
return IXMLDOMDocument_createNode(iface, type, NULL, NULL, (IXMLDOMNode**)frag);
}
......
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