Why are LinkActivationListener instances or openLink calls not working in SVG 1.2 documents?
Setup: Library: batik1.7beta1 JDK: 1.5 (Apple) OS: MacOS 10.5 Both LinkActivationListener and openLink work correctly when I have an anchor in SVG 1.0 and 1.1 documents but when I change the document to 1.2 I no longer receive these events. I have traced the event as such: (me clicking on a link) BridgeEventSuport$Listener (BridgeEventSupport.java:248) BridgeEventSuport$Listener (BridgeEventSupport.java:340) SVG12BridgeEventSupport$Listener ( SVG12BridgeEventSupport.java:750) SVG12BridgeEventSupport$Listener (SVG12BridgeEventSupport.java:819) AbstractNode (AbstractNode.java:1011) XBLEventSupport (XBLEventSupport.java:302) EventSupport (EventSupport.java :359) EventSupport (EventSupport.java:317) SVGAElementBridge (SVGAElementBridge.java:172) Now within the method handleEvent in SVGAElementBridge.java:171 on lines 186 and 187 it creates and adds a AnchorDefaultActionable object to the event but it seems this is only will be run if execution makes it back to dispatchEvent in EventSupport.java:226 (lines 282-291). Since this is a 1.2document execution returns to dispatchEvent in XBLEventSupport.java:210 (line 302). I was puzzled by this since the hover over still worked properly but I found out that it is probably because it's being handled by a DOMMouseOverEventListener (BridgeContext.java:1548) and not CursorMouseOverListener (SVGAElementBridge.java:216) as I had suspected. I am more than willing to put in code to fix it so the anchor event works again, is there a specific place where this functionality should be implemented? -- - Robert
