Affects Version/s: 1.8
Fix Version/s: None
Component/s: SVG Viewer
Environment:Operating System: Windows Vista
While participating in a batik-users thread , I discovered a set of (minor?) issues while playing with Batik Squiggle's DOM Viewer. I'm creating this bug in order to 1) act as a reminder to try better tracking them down whenever possible and 2) act like a list of known-issues in case someone else also happens to bump at something weird while using the DOM viewer.
Maybe this could/should be broken into several bugs (one per issue) but, given that these issues should be fairly to fix, managing multiple issues can become too much of a burden (as already discussed a couple of times in batik-dev).
1. Works with simple cases , seem to choke with more complex ones .
Nevertheless, in the second test case, I'm also seeing unresolved namespace weirdness (the "a0" hints towards that)which I thought it had already been fixed in trunk:
<a0:g xmlns:a0="http://www.w3.org/2000/svg" style="fill: #ffffff; stroke:#000000; stroke-width:0.172">
<a0:path d="[long path data]"/>
I still haven't figured out if this is due to:
-  being a more complex document;
-  making heavy use of cubic splines, which may be breaking the node finder/highlighting algorithm.
2. The DOM viewer doesn't maintain state: whenever the (DOM Viewer) window is closed and opened again, the previously highlighted items are disconnected. The simplest approach would be clearing the set of highlighted items prior to closing the window; another possibility would be maintaining state, for example by hiding the window instead of closing it (not sure about the performance implications of that).
Both issues were noticed in revision 892855, using Sun Java 1.6 update 17 on Windows Vista SP2.