Re: [proximity] HTML's WebIDL Function

On 28/05/2012 15:39, Anne van Kesteren wrote:
> On Mon, 28 May 2012 13:25:42 +0200, Marcos Caceres 
> <marcosscaceres@gmail.com> wrote:
>> While on other event handlers idl attributes (e.g., onload, onclick, 
>> etc.), the following works just fine:
>>
>> window.onload = {handleEvent: function(e){console.log(e)}}
>> window.onclick = {handleEvent: function(e){console.log(e)}}
>
> "[J]ust fine" is an overstatement. It works in Chrome (which is a bug) 
> and it does not work in Opera and Firefox.
There are *other* browsers?!? :) But seriously, then what is the correct 
behavior here? That was the original question which I was seeking 
guidance was: use HTML Function or DOM4 EventListener?

Received on Monday, 28 May 2012 14:48:03 UTC