W3C home > Mailing lists > Public > www-svg@w3.org > February 2005

Re: SVG12: Namespaced Events

From: Jon Ferraiolo <jon.ferraiolo@adobe.com>
Date: Thu, 10 Feb 2005 13:12:27 -0800
To: Bjoern Hoehrmann <derhoermi@gmx.net>, www-svg@w3.org
Message-id: <>

Good points!

Regarding SMIL 2.0, I am surprised by your contention that SMIL 2.0 
supports namespaced events because my understanding was that SMIL 2.0 
happened well before namespaced events happened and I looked at the 
definition of the 'begin' attribute 
and did not see anything about namespacing or prefixing. Here is a 
copy/paste of what the SMIL 2.0 spec says about event names:
The event value must specify an Event-symbol. This term is an XML NMTOKEN 
that specifies the name of the event that is raised on the Event-base 
element. The host language designer must specify which events can be specified.
     * Host language specifications must include a description of legal 
event names (with "none" as a valid description), and/or allow any name to 
be used.
So, I didn't find anything in SMIL 2.0 about namespaced events. 
Nevertheless, since the definition of NMTOKEN allows a ":", then it is 
syntactically possible for the event name to be a QName, I think this makes 
total sense for SVG, as a host language for SMIL Timing, to say that the 
event names are QName's. For backwards compatibility, if only a localname 
for the event is provided, then the default namespace for the event is the 
XML Events namespace.

And I agree that it is wrong for the spec to include/talk about 
addEventListener() instead of addEventListenerNS().

I will forward my comments to the SVG WG for discussion there.


At 11:10 AM 2/10/2005, Bjoern Hoehrmann wrote:

>Dear Scalable Vector Graphics Working Group,
>   Not that I am fond of event locators, but it appears that SVG 1.2
>makes inconsistent use of namespaced events. In particular, it says
>it changes XML Events to allow namespaced events, but does not do
>so for other things.
>In particular, SVG 1.1, per its own definition that SVG 1.2 inherits and
>per its reference to SMIL Animation does not support namespaced events
>as far as I can tell. SMIL 2.0 does, and SVG 1.2 refers to SMIL 2.0, but
>it does not say whether this allows namespaced events e.g. in the begin
>attribute; http://www.w3.org/TR/2004/WD-SVG12-20041027/animation.html
>does not discuss it at least.
>The specification further refers to addEventListener() in several places
>rather than its namespace-aware counter-part addEventListenerNS(), in
>particular the "DOM Subset" only has addEventListener(). This does not
>seem right considering that SVG 1.2 introduces events that likely clash
>with other specifications.
>Please change the draft to either consistently refer to namespaced
>events or document these design decisions in the document including
>anticipated changes in future versions of SVG and how authors should
>deal with this in the meantime.
>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, 10 February 2005 21:47:10 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:02 UTC