W3C home > Mailing lists > Public > public-svg-wg@w3.org > July to September 2008

ISSUE-2022 (link-activation-behavior): The activation behaviour of <a> elements should be defined [SVG Tiny 1.2]

From: SVG Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Fri, 25 Jul 2008 04:25:29 +0000 (GMT)
To: public-svg-wg@w3.org
Message-Id: <20080725042529.EE5006B62B@tibor.w3.org>

ISSUE-2022 (link-activation-behavior): The activation behaviour of <a> elements should be defined [SVG Tiny 1.2]

http://www.w3.org/Graphics/SVG/WG/track/issues/2022

Raised by: Cameron McCormack
On product: SVG Tiny 1.2

DOM Level 3 Events has the concept of "activation behavior", which is the behavior that occurs as a result of activating some event target, e.g. clicking a link.  This activation behavior is the default action of the DOMActivate event.  SVG Tiny 1.2 should define the activation behavior of <a> elements as being the traversal of that link, so it is clear that calling evt.preventDefault() on such a DOMActivate event will cause the link traversal not to happen.

I suggest the following text be added just before example link01 in http://dev.w3.org/SVG/profiles/1.2T/publish/linking.html#AElement:

  The activation behavior of the 'a' element is for the link to be traversed according to the attributes
  on the element.  Thus, link traversal can be prevented by canceling the DOMActivate event that
  is dispatched by invoking the preventDefault() method on the event object.  Note that DOM Level 3
  Events requires a click event to be synthesized if activation the 'a' element is not performed in
  response to a click event (for example if the user focuses the element and then presses Enter).

See: http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#events-Events-flow-activation
Received on Friday, 25 July 2008 04:27:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:09 UTC