mshtml: Implement HTMLDOMTextNode's toString.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fc4482815c
commit
e0585d4c18
|
@ -128,8 +128,16 @@ static HRESULT WINAPI HTMLDOMTextNode_get_data(IHTMLDOMTextNode *iface, BSTR *p)
|
|||
static HRESULT WINAPI HTMLDOMTextNode_toString(IHTMLDOMTextNode *iface, BSTR *String)
|
||||
{
|
||||
HTMLDOMTextNode *This = impl_from_IHTMLDOMTextNode(iface);
|
||||
FIXME("(%p)->(%p)\n", This, String);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, String);
|
||||
|
||||
if(!String)
|
||||
return E_INVALIDARG;
|
||||
|
||||
if(dispex_compat_mode(&This->node.event_target.dispex) < COMPAT_MODE_IE9)
|
||||
return IHTMLDOMTextNode_get_data(&This->IHTMLDOMTextNode_iface, String);
|
||||
|
||||
return dispex_to_string(&This->node.event_target.dispex, String);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDOMTextNode_get_length(IHTMLDOMTextNode *iface, LONG *p)
|
||||
|
|
|
@ -223,6 +223,7 @@ sync_test("builtin_toString", function() {
|
|||
test("styleSheetRule", sheet.rules.item(0), "CSSStyleRule");
|
||||
test("styleSheetRules", sheet.rules, "MSCSSRuleList");
|
||||
test("styleSheets", document.styleSheets, "StyleSheetList");
|
||||
test("textNode", document.createTextNode("testNode"), "Text", v < 9 ? "testNode" : null);
|
||||
test("textRange", txtRange, "TextRange");
|
||||
test("window", window, "Window", "[object Window]");
|
||||
test("xmlHttpRequest", new XMLHttpRequest(), "XMLHttpRequest");
|
||||
|
|
Loading…
Reference in New Issue