Jacek Caban : mshtml: Added support for DISPATCH_METHOD|DISPATCH_PROPERTYGET flags in HTMLDocumentNode_invoke .

Alexandre Julliard julliard at winehq.org
Mon Sep 10 15:22:11 CDT 2012


Module: wine
Branch: master
Commit: bdcc88a3968deb0bc50f82aeec72018f041b7176
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bdcc88a3968deb0bc50f82aeec72018f041b7176

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Sep 10 14:41:09 2012 +0200

mshtml: Added support for DISPATCH_METHOD|DISPATCH_PROPERTYGET flags in HTMLDocumentNode_invoke.

---

 dlls/mshtml/htmldoc.c         |    2 +-
 dlls/mshtml/tests/vbtest.html |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 86615df..a6bb56d 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -2183,7 +2183,7 @@ static HRESULT HTMLDocumentNode_invoke(DispatchEx *dispex, DISPID id, LCID lcid,
     nsresult nsres;
     HRESULT hres;
 
-    if(flags != DISPATCH_PROPERTYGET) {
+    if(flags != DISPATCH_PROPERTYGET && flags != (DISPATCH_METHOD|DISPATCH_PROPERTYGET)) {
         FIXME("unsupported flags %x\n", flags);
         return E_NOTIMPL;
     }
diff --git a/dlls/mshtml/tests/vbtest.html b/dlls/mshtml/tests/vbtest.html
index f424b38..f023f98 100644
--- a/dlls/mshtml/tests/vbtest.html
+++ b/dlls/mshtml/tests/vbtest.html
@@ -32,6 +32,7 @@ If true then counter = counter+1
 Sub runTest()
     Call ok(counter = 6, "counter = " & counter)
     Call ok(isNull(document.onkeyup), "document.onkeyup is not null")
+    Call ok(document.formname.tagName = "FORM", "document.form.tagName = " & document.formname.tagName)
     Call external.reportSuccess()
 End Sub
 </script>
@@ -39,5 +40,6 @@ End Sub
 // We're in javascript
 </script>
 <body onload="If true then runTest()">
+<form name="formname"></form>
 </body>
 </html>




More information about the wine-cvs mailing list