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

Hi, Cameron-

Agreed, wording looks good.  Small typo (missing "of" after 
"activation"); here's a correction, along with a suggested addition (if 
you think the added wording helps):

   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 of the 'a' element is not performed in response to
   a click event (for example if the user focuses the element
   and then presses the Enter key).  Therefore, a link activation
   must be composed of an optional keydown event, then a click
   event, followed by a cancelable DOMActivate event.


Regards-
-Doug

SVG Working Group Issue Tracker wrote (on 7/25/08 12:25 AM):
> 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 05:17:29 UTC