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

mshtml: Implement HTMLDocument's toString using dispex_to_string.

parent c05704c7
...@@ -1703,12 +1703,7 @@ static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String) ...@@ -1703,12 +1703,7 @@ static HRESULT WINAPI HTMLDocument_toString(IHTMLDocument2 *iface, BSTR *String)
TRACE("(%p)->(%p)\n", This, String); TRACE("(%p)->(%p)\n", This, String);
if(!String) return dispex_to_string(&This->doc_node->node.event_target.dispex, String);
return E_INVALIDARG;
*String = SysAllocString(L"[object]");
return *String ? S_OK : E_OUTOFMEMORY;
} }
static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref, static HRESULT WINAPI HTMLDocument_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref,
......
...@@ -210,6 +210,7 @@ sync_test("builtin_toString", function() { ...@@ -210,6 +210,7 @@ sync_test("builtin_toString", function() {
if(clientRects) test("clientRect", clientRects[0], "ClientRect"); if(clientRects) test("clientRect", clientRects[0], "ClientRect");
if(clientRects) test("clientRects", clientRects, "ClientRectList"); if(clientRects) test("clientRects", clientRects, "ClientRectList");
if(currentStyle) test("currentStyle", currentStyle, "MSCurrentStyleCSSProperties"); if(currentStyle) test("currentStyle", currentStyle, "MSCurrentStyleCSSProperties");
if(v >= 11 /* todo_wine */) test("document", document, v < 11 ? "Document" : "HTMLDocument");
test("elements", document.getElementsByTagName("body"), "HTMLCollection"); test("elements", document.getElementsByTagName("body"), "HTMLCollection");
test("history", window.history, "History"); test("history", window.history, "History");
test("implementation", document.implementation, "DOMImplementation"); test("implementation", document.implementation, "DOMImplementation");
......
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