diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index 78e5c7bd57..49b21ad37f 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -40,13 +40,13 @@ static const char range_test2_str[] =
"
abc
123
def";
static const char elem_test_str[] =
"test"
- "text test"
+ "text test"
"link"
""
""
""
""
- ""
+ ""
""
""
""
@@ -3459,6 +3459,27 @@ static void test_elems(IHTMLDocument2 *doc)
test_doc_title(doc, "test");
test_doc_set_title(doc, "test title");
test_doc_title(doc, "test title");
+
+ disp = NULL;
+ hres = IHTMLDocument2_get_Script(doc, &disp);
+ ok(hres == S_OK, "get_Script failed: %08x\n", hres);
+ if(hres == S_OK)
+ {
+ IDispatchEx *dispex;
+ hres = IDispatch_QueryInterface(disp, &IID_IDispatchEx, (void**)&dispex);
+ ok(hres == S_OK, "IDispatch_QueryInterface failed: %08x\n", hres);
+ if(hres == S_OK)
+ {
+ DISPID pid = -1;
+ BSTR str = a2bstr("Testing");
+ hres = IDispatchEx_GetDispID(dispex, str, 1, &pid);
+ todo_wine ok(hres == S_OK, "GetDispID failed: %08x\n", hres);
+ todo_wine ok(pid != -1, "pid == -1\n");
+ SysFreeString(str);
+ IDispatchEx_Release(dispex);
+ }
+ }
+ IDispatch_Release(disp);
}
static void test_create_elems(IHTMLDocument2 *doc)