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

msxml3: Implement ::replaceData() for Text, Comment and CDATA nodes.

parent 88d82187
...@@ -705,8 +705,17 @@ static HRESULT WINAPI domcdata_replaceData( ...@@ -705,8 +705,17 @@ static HRESULT WINAPI domcdata_replaceData(
IXMLDOMCDATASection *iface, IXMLDOMCDATASection *iface,
LONG offset, LONG count, BSTR p) LONG offset, LONG count, BSTR p)
{ {
FIXME("\n"); domcdata *This = impl_from_IXMLDOMCDATASection( iface );
return E_NOTIMPL; HRESULT hr;
TRACE("%p %d %d %s\n", This, offset, count, debugstr_w(p));
hr = IXMLDOMCDATASection_deleteData(iface, offset, count);
if (hr == S_OK)
hr = IXMLDOMCDATASection_insertData(iface, offset, p);
return hr;
} }
static HRESULT WINAPI domcdata_splitText( static HRESULT WINAPI domcdata_splitText(
......
...@@ -713,8 +713,17 @@ static HRESULT WINAPI domcomment_replaceData( ...@@ -713,8 +713,17 @@ static HRESULT WINAPI domcomment_replaceData(
IXMLDOMComment *iface, IXMLDOMComment *iface,
LONG offset, LONG count, BSTR p) LONG offset, LONG count, BSTR p)
{ {
FIXME("\n"); domcomment *This = impl_from_IXMLDOMComment( iface );
return E_NOTIMPL; HRESULT hr;
TRACE("%p %d %d %s\n", This, offset, count, debugstr_w(p));
hr = IXMLDOMComment_deleteData(iface, offset, count);
if (hr == S_OK)
hr = IXMLDOMComment_insertData(iface, offset, p);
return hr;
} }
static const struct IXMLDOMCommentVtbl domcomment_vtbl = static const struct IXMLDOMCommentVtbl domcomment_vtbl =
......
...@@ -706,8 +706,17 @@ static HRESULT WINAPI domtext_replaceData( ...@@ -706,8 +706,17 @@ static HRESULT WINAPI domtext_replaceData(
IXMLDOMText *iface, IXMLDOMText *iface,
LONG offset, LONG count, BSTR p) LONG offset, LONG count, BSTR p)
{ {
FIXME("\n"); domtext *This = impl_from_IXMLDOMText( iface );
return E_NOTIMPL; HRESULT hr;
TRACE("%p %d %d %s\n", This, offset, count, debugstr_w(p));
hr = IXMLDOMText_deleteData(iface, offset, count);
if (hr == S_OK)
hr = IXMLDOMText_insertData(iface, offset, p);
return hr;
} }
static HRESULT WINAPI domtext_splitText( static HRESULT WINAPI domtext_splitText(
......
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