W3C home > Mailing lists > Public > www-svg@w3.org > July 2006

Re: SVG12: 'WheelEvent' "registration"

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 27 Jul 2006 18:10:04 +0200
To: <doug.schepers@vectoreal.com>
Cc: "'Robin Berjon'" <robin.berjon@expway.fr>, <www-svg@w3.org>
Message-ID: <c6ohc29qema375ut5ngh01hqkf9416hqp0@hive.bjoern.hoehrmann.de>

* Doug Schepers wrote:
>| >  The "wheel" event is triggered when the user rotates the rotational
>| >  input device. Listeners for this event may only be attached to the
>| >  Element node that is the Document node's documentElement. If a
>| >  listener for this event is attached to another node in the document,
>| >  the user agent MUST NOT trigger it when the event occurs. 
>| 
>| It seems what you are trying to say is that the event is 
>| dispatched only to the document element (and maybe that 
>| it does not bubble, as otherwise the listeners for the 
>| document node would be triggered).
>
>We are saying that the wheel event may only be attached to the rootmost
>'svg' element.  If you object to this, please respond right away with
>further clarification.

I am not familiar with the concept of attaching an event to an element;
I do not understand what you or the text are trying to convey. The words
you use to express whatever you are trying to express are meaningless to
me. They do not make sense. This is not rocket science, if you have code
like

  document.addEventListener('SVGMousewheel', callback, false);

then you are attaching a listener to something that is not the Document
node's documentElement. This is clearly outside of the "may only" clause
above, yet there does not seem anything bad about this code. And if you
have this code, and the SVGMousewheel event bubbles (which it does per
13.2), DOM Level 3 Events requires implementations to pass control to
the `callback` when the event occurs. Implementations "MUST NOT" do that
according to the text above. That, too, does not make sense.
-- 
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 Thursday, 27 July 2006 16:10:18 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:35 GMT