Module: wine Branch: master Commit: f90798572a0855361bde2935290cdfd3c539ad93 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f90798572a0855361bde293529...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Sep 25 14:18:30 2012 +0200
mshtml: Added DISPATCH_PROPERTYGET|DISPATCH_METHOD flags support for elements exposed as window properties.
---
dlls/mshtml/htmlwindow.c | 1 + dlls/mshtml/tests/vbtest.html | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index fc432d8..7122b4b 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -2599,6 +2599,7 @@ static HRESULT HTMLWindow_invoke(DispatchEx *dispex, DISPID id, LCID lcid, WORD } case GLOBAL_ELEMENTVAR: switch(flags) { + case DISPATCH_PROPERTYGET|DISPATCH_METHOD: case DISPATCH_PROPERTYGET: { IHTMLElement *elem;
diff --git a/dlls/mshtml/tests/vbtest.html b/dlls/mshtml/tests/vbtest.html index f023f98..44212e7 100644 --- a/dlls/mshtml/tests/vbtest.html +++ b/dlls/mshtml/tests/vbtest.html @@ -33,6 +33,7 @@ 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 ok(formname.tagName = "FORM", "form.tagName = " & formname.tagName) Call external.reportSuccess() End Sub </script>