W3C home > Mailing lists > Public > public-device-apis@w3.org > September 2011

Re: cancelable and bubbles in init*Event

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 07 Sep 2011 04:25:37 +0200
To: Robin Berjon <robin@berjon.com>
Cc: www-dom@w3.org, public-device-apis@w3.org
Message-ID: <6ald67pmgu78evh6kac6644jhaboes4f98@hive.bjoern.hoehrmann.de>
* Robin Berjon wrote:
>The battery event is defined in such a way that it is neither
>cancellable nor bubbling. However, in line with other init*Event
>methods, options are provided to define synthetic such events as
>cancellable or bubbling. The question is therefore: what's the right
>thing to do when either are set to true?
>    a) Synthesise an event that bubbles and can be cancelled?

The answer is "a", though not for the reasons Anne offered, but because
there are no interfaces, that I know of, that define the init methods
in any other way, and you have provided no reason why this interface
is set apart from the others in a manner that suggest other behavior.
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Wednesday, 7 September 2011 02:25:57 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 14:53:50 UTC