//#include <stdarg.h>
#ifdef HAVE_LIBXML2
# include <libxml/parser.h>
+# include <libxml/parserInternals.h>
//# include <libxml/xmlerror.h>
#endif
return CONTAINING_RECORD(iface, domtext, IXMLDOMText_iface);
}
+static void domtext_reset_noenc(domtext *This)
+{
+ This->node.node->name = NULL;
+}
+
static HRESULT WINAPI domtext_QueryInterface(
IXMLDOMText *iface,
REFIID riid,
TRACE("(%p)->(%s)\n", This, debugstr_variant(&value));
+ domtext_reset_noenc(This);
return node_put_value(&This->node, &value);
}
{
domtext *This = impl_from_IXMLDOMText( iface );
TRACE("(%p)->(%s)\n", This, debugstr_w(p));
+ domtext_reset_noenc(This);
return node_put_text( &This->node, p );
}
BSTR data)
{
domtext *This = impl_from_IXMLDOMText( iface );
+ static WCHAR rnW[] = {'\r','\n',0};
+
TRACE("(%p)->(%s)\n", This, debugstr_w(data));
+
+ if (data && !strcmpW(rnW, data))
+ This->node.node->name = xmlStringTextNoenc;
+ else
+ domtext_reset_noenc(This);
return node_set_content(&This->node, data);
}