W3C home > Mailing lists > Public > public-webapi@w3.org > March 2006

Re: ACTION-70: Define the scope chain of onFoo events reference issue-1

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 15 Mar 2006 07:40:41 +0100
To: Jonas Sicking <jonas@sicking.cc>
Cc: public-webapi@w3.org
Message-ID: <p1df12dahfp5qjrf24ahjdhi1r3ovr70g0@hive.bjoern.hoehrmann.de>

* Jonas Sicking wrote:
>Do we really only want to do this for HTML attributes? It's not a 
>particularly beautiful thing to do, but on the other hand it's always 
>nice when things behave everywhere.

Well, this behavior is pretty much limited to HTML onfoo="" attributes,
you don't have it for SVG onfoo="" attributes in most implementations,
or addEventListener listeners, or <script> listeners, ... and since you
would ultimiately have to change handleEvent's signature, I don't think
that is a good idea. Note that this isn't as simple as if the return
value is false: preventDefault; what you do depends on the event type.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Wednesday, 15 March 2006 06:40:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:53 GMT