Hi Bruce,

On 28 déc. 2006, at 20:14, brucerindahl wrote:

> Is there a reference?  It would help if I post bugs to Mozilla and  
> Batik.

The bug already exists in the Mozilla database:

https://bugzilla.mozilla.org/show_bug.cgi?id=265895

If you have a testcase, you should post it there to help the bug  
getting fixed and tested.

As for the justification for this feature, look into section 5.6 of  
the SVG 1.1 specification, "The 'use' element", with the following  
excerpt:
=====8<=====

If event attributes are assigned to referenced elements, then the  
actual target for the event will be the SVGElementInstance object  
within the "instance tree" corresponding to the given referenced  
element.

The event handling for the non-exposed tree works as if the  
referenced element had been textually included as a deeply cloned  
child of the 'use' element, except that events are dispatched to the  
SVGElementInstance objects. The event's target and currentTarget  
attributes are set to the SVGElementInstance that corresponds to the  
target and current target elements in the referenced subtree. An  
event propagates through the exposed and non-exposed portions of the  
tree in the same manner as it would in the regular document tree:  
first going from the root element to the 'use' element and then  
through non-exposed tree elements in the capture phase, followed by  
the target phase at the target of the event, then bubbling back  
through non-exposed tree to the use element and then back through  
regular tree to the root element in bubbling phase.

An element and all its corresponding SVGElementInstance objects share  
an event listener list. The currentTarget attribute of the event can  
be used to determine through which object an event listener was invoked.

=====>8=====

The complete reference can be found at http://www.w3.org/TR/SVG11/ 
struct.html#UseElement.

By the way, if you place an event listener on a <use> element,  
event.currentTarget will return an SVGUseElement object, which will  
be the same as event.target.correspondingUseElement.

As far as I can tell, Opera 9 has the correct implementation of this  
feature.

Antoine
-- 
Blog — http://the.fuchsia-design.com





-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to