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

SVG12: SVGEventFilter

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 16 Feb 2005 02:59:27 +0100
To: www-svg@w3.org
Message-ID: <4220690e.305091765@smtp.bjoern.hoehrmann.de>

Dear Scalable Vector Graphics Working Group,

  In http://www.w3.org/TR/2004/WD-SVG12-20041027/dom.html many things
are not well-defined for the SVGEventFilter interface; I've already
complained about using short inline IDL comments as the only normative
definition of certain features, I won't go at lengths repeating that
for each feature; here for example one would have to guess what the
values for the 'phase' and 'button' attributes might be...

Here in particular the dragOnly attribute talks about "mouse motion
events" for which I could not find a definition in SVG 1.1/1.2 and
DOM Level 3 events. The only real "mouse motion" event seems to be
mousemove but then it could also be mouseover, mouseup, mousedown,
mouseout, wheel, etc. events, please change the draft such that it
is clear which events are referred to.

The SVGEventFilter attrLocalName and attrNamespace are unclear about
how those are matched against the event, for example, if there is one
of the following

  filter.attrLocalName = " Björn ";
  filter.attrLocalName = "Bjo\u0308rn";

would these match for a 'Björn' attribute? Or with

  <foo bar:Björn xmlns:bar="urn:x-bjoern#" />

would

  filter.attrLocalName = "bar:Björn";

match? Please change the draft such that the comparison algorithm is
clearly defined. This applies to attrNamespace aswell.

It is not clear whether one may specify "*" as attrLocalName as one
could with getElementsByTagNameNS and other methods, please change the
draft either such that this is allowed or such that attrNamespace is
considered regardless of attrLocalName (or both) so one can filter for
attributes in a specific namespace without beeing explicit about the
local name.

It is not clear how the filter is inizialized, while the draft states
"The default state of the created filter does not filter any events"
this would be satisfied by

  filter.phase         = SVGEventFilter.DONT_FILTER;
  filter.target        = null;
  filter.button        = SVGEventFilter.DONT_FILTER;
  filter.dragOnly      = false;
  filter.attrLocalName = null;
  filter.attrNamespace = "http://www.w3.org/XML/1998/namespace";

which would yield in unintended side-effects.

regards.
-- 
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, 16 February 2005 01:59:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:39:55 UTC