[PATCH v2 07/16] mshtml: Implement HTMLElementCollection's toString.
Gabriel Ivăncescu
gabrielopcode at gmail.com
Tue Oct 5 09:18:40 CDT 2021
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
dlls/mshtml/htmlelemcol.c | 6 ++++--
dlls/mshtml/tests/documentmode.js | 1 +
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmlelemcol.c b/dlls/mshtml/htmlelemcol.c
index 86ef3a3..895b3db 100644
--- a/dlls/mshtml/htmlelemcol.c
+++ b/dlls/mshtml/htmlelemcol.c
@@ -301,8 +301,10 @@ static HRESULT WINAPI HTMLElementCollection_toString(IHTMLElementCollection *ifa
BSTR *String)
{
HTMLElementCollection *This = impl_from_IHTMLElementCollection(iface);
- FIXME("(%p)->(%p)\n", This, String);
- return E_NOTIMPL;
+
+ TRACE("(%p)->(%p)\n", This, String);
+
+ return dispex_to_string(&This->dispex, String);
}
static HRESULT WINAPI HTMLElementCollection_put_length(IHTMLElementCollection *iface,
diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js
index 1c617e4..61b9daa 100644
--- a/dlls/mshtml/tests/documentmode.js
+++ b/dlls/mshtml/tests/documentmode.js
@@ -195,6 +195,7 @@ sync_test("builtin_toString", function() {
test("clientRect", e.getClientRects()[0], "ClientRect");
test("clientRects", e.getClientRects(), "ClientRectList");
test("currentStyle", e.currentStyle, "MSCurrentStyleCSSProperties");
+ test("elements", document.getElementsByTagName("body"), "HTMLCollection");
test("history", window.history, "History");
test("implementation", document.implementation, "DOMImplementation");
test("localStorage", window.localStorage, "Storage");
--
2.31.1
More information about the wine-devel
mailing list