W3C home > Mailing lists > Public > public-device-apis@w3.org > May 2012

Re: [proximity] HTML's WebIDL Function

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 28 May 2012 16:39:11 +0200
To: "public-device-apis@w3.org" <public-device-apis@w3.org>, anssi.kostiainen@nokia.com, "Marcos Caceres" <marcosscaceres@gmail.com>
Message-ID: <op.we0wbmjv64w2qv@annevk-macbookpro.local>
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.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Monday, 28 May 2012 14:39:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 28 May 2012 14:39:53 GMT