mshtml: Added DISPATCH_PROPERTYGET|DISPATCH_METHOD flags support for elements exposed as window properties.
This commit is contained in:
parent
7a2d68abc8
commit
f90798572a
|
@ -2599,6 +2599,7 @@ static HRESULT HTMLWindow_invoke(DispatchEx *dispex, DISPID id, LCID lcid, WORD
|
||||||
}
|
}
|
||||||
case GLOBAL_ELEMENTVAR:
|
case GLOBAL_ELEMENTVAR:
|
||||||
switch(flags) {
|
switch(flags) {
|
||||||
|
case DISPATCH_PROPERTYGET|DISPATCH_METHOD:
|
||||||
case DISPATCH_PROPERTYGET: {
|
case DISPATCH_PROPERTYGET: {
|
||||||
IHTMLElement *elem;
|
IHTMLElement *elem;
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ Sub runTest()
|
||||||
Call ok(counter = 6, "counter = " & counter)
|
Call ok(counter = 6, "counter = " & counter)
|
||||||
Call ok(isNull(document.onkeyup), "document.onkeyup is not null")
|
Call ok(isNull(document.onkeyup), "document.onkeyup is not null")
|
||||||
Call ok(document.formname.tagName = "FORM", "document.form.tagName = " & document.formname.tagName)
|
Call ok(document.formname.tagName = "FORM", "document.form.tagName = " & document.formname.tagName)
|
||||||
|
Call ok(formname.tagName = "FORM", "form.tagName = " & formname.tagName)
|
||||||
Call external.reportSuccess()
|
Call external.reportSuccess()
|
||||||
End Sub
|
End Sub
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue