mshtml: Added DISPATCH_PROPERTYGET|DISPATCH_METHOD flags support for elements exposed as window properties.

This commit is contained in:
Jacek Caban 2012-09-25 14:18:30 +02:00 committed by Alexandre Julliard
parent 7a2d68abc8
commit f90798572a
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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>