This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
[Callback] interface A { void f(); }; interface B { void g(in A a); }; --- function h() { alert('1') } h.f = function() { alert('2') } b.g(h) Make this alert "1" instead of "2". (And do some testing around this.) http://www.w3.org/mid/9768D477C67135458BF978A45BCF9B381FDA5C@TK5EX14MBXW605.wingroup.windeploy.ntdev.microsoft.com
Looks like IE, Firefox, Chrome and Opera all prefer to call the function itself rather than the handleEvent property. http://people.mozilla.org/~cmccormack/tests/eventlistener-property.html And it seems the spec already requires this, anyway: http://dev.w3.org/2006/webapi/WebIDL/#native-objects