W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010

Re: Custom DOM events and privileged browser add-ons; Was: Bubbling/Capturing for XHR + other non-DOM objects

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 02 Jul 2010 12:57:08 +0200
To: "Anne van Kesteren" <annevk@opera.com>
Cc: www-dom@w3.org, public-webapps@w3.org
Message-ID: <9ffr265b40vlq8l3vm7np6lkebncmh1415@hive.bjoern.hoehrmann.de>
* Anne van Kesteren wrote:
>On Fri, 02 Jul 2010 12:03:30 +0200, Bjoern Hoehrmann <derhoermi@gmx.net>  
>wrote:
>> Well let's see: if you want to know what the XHR event flow is, then you
>> have to read the XHR specification to see whether it specifies something
>> different from the "default" regardless of whether it does or does not.
>> If it does specify the event flow, then you are done. And if it does not
>> you also have to read the DOM Events specification to learn the default.
>> So, correct me if I am wrong, but having to read two specifications does
>> not seem to be less work than having to read only one specification.
>
>You have to read DOM Events either way.

Not to answer the particular question. Sure, you might have read the DOM
Events specification, say, to figure out what Event.currentTarget is but
what it means when a specification does not define the event flow you'd
expect it to define is not something that will stick with most readers,
they will have to consult the specification just to answer the question.

(It's worse even, because some readers would not know where to check if
the XHR specification does not define it, do they have to check the spe-
cification for the `window` object aswell, or for the individual events,
considering that the propagation paths sometimes depend on the type of
event that is being dispatched, and others may jump to the conclusion it
is left to the implementation or that it's "the same" as with whatever
they are already familiar with, whatever that is.)

The event flow with respect to some object should always be defined in
the same place that defines that object to be an EventTarget, there is
no point in optimizing the one sentence it takes to define it out using
implicit indirection.
-- 
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 Friday, 2 July 2010 10:57:35 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:39 GMT