mshtml: Added put_innerHTML implementation.

This commit is contained in:
Jacek Caban 2006-10-29 19:15:02 +01:00 committed by Alexandre Julliard
parent 587156f43e
commit abd764674a
1 changed files with 22 additions and 2 deletions

View File

@ -531,8 +531,28 @@ static HRESULT WINAPI HTMLElement_get_offsetParent(IHTMLElement *iface, IHTMLEle
static HRESULT WINAPI HTMLElement_put_innerHTML(IHTMLElement *iface, BSTR v)
{
HTMLElement *This = HTMLELEM_THIS(iface);
FIXME("(%p)->(%s)\n", This, debugstr_w(v));
return E_NOTIMPL;
nsIDOMNSHTMLElement *nselem;
nsAString html_str;
nsresult nsres;
TRACE("(%p)->(%s)\n", This, debugstr_w(v));
nsres = nsIDOMHTMLElement_QueryInterface(This->nselem, &IID_nsIDOMNSHTMLElement, (void**)&nselem);
if(NS_FAILED(nsres)) {
ERR("Could not get nsIDOMNSHTMLElement: %08x\n", nsres);
return E_FAIL;
}
nsAString_Init(&html_str, v);
nsres = nsIDOMNSHTMLElement_SetInnerHTML(nselem, &html_str);
nsAString_Finish(&html_str);
if(NS_FAILED(nsres)) {
FIXME("SetInnerHtml failed %08x\n", nsres);
return E_FAIL;
}
return S_OK;
}
static HRESULT WINAPI HTMLElement_get_innerHTML(IHTMLElement *iface, BSTR *p)