Commit e0585d4c authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

mshtml: Implement HTMLDOMTextNode's toString.

parent fc448281
......@@ -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");
......
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