DO NOT REPLY [Bug 48073] New: Batik should display anchor "xlink:title" attribute contents as a tooltip

View: New views
3 Messages — Rating Filter:   Alert me  

DO NOT REPLY [Bug 48073] New: Batik should display anchor "xlink:title" attribute contents as a tooltip

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=48073

           Summary: Batik should display anchor "xlink:title" attribute
                    contents as a tooltip
           Product: Batik
           Version: 1.8
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Bridge
        AssignedTo: batik-dev@...
        ReportedBy: helder.magalhaes@...


A tooltip is not displayed whenever a anchor ("a" element) has the
"xlink:title" attribute [1] set.

Batik already displays the contents of "title" and "desc" elements as tooltips,
as suggested by the SVG specification [2], so I'd say we should also display
the link title.

I'm not sure how precedence should be handled (when a given link has
"xlink:title" attribute and child "title"/"desc" elements), but it is suggested
[3] that "xlink:title", when set, should take precedence over the other.

A current workaround consists of adding a "title" child element to the anchor
with the same content as the "xlink:title" attribute, which is then rendered by
Batik. A test case with this idea was implemented [4] during experiments in
order to force a pointer cursor in ASV3: one would expect a tooltip when
hovering on the blue (leftmost) circle.

[1] http://www.w3.org/TR/SVG/struct.html#XLinkTitleAttribute
[2] http://www.w3.org/TR/SVG/struct.html#DescriptionAndTitleElements
[3]
http://www.w3.org/Graphics/SVG/IG/wiki/Accessibility_Activity#Title_As_Tooltip
[4] http://heldermagalhaes.com/stuff/svg/hacks/ASV3-EmulatePointerCursor.svg

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@...
For additional commands, e-mail: batik-dev-help@...


DO NOT REPLY [Bug 48073] Batik should display anchor "xlink:title" attribute contents as a tooltip

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=48073

--- Comment #1 from Helder Magalhães <helder.magalhaes@...> 2009-10-28 08:23:10 UTC ---
I forgot to mention I found nothing tightly related in the mailing list,
although there were a couple of lightly related threads [1] [2]. In one of
them, Thomas hints towards Batik only using the "title"/"desc" attributes:

«So we use the SVG native 'title' and 'desc' elements rather than
the xlink attributes.» [1].

I'd still say taking "xlink:title" into consideration was useful, specially for
the fallback case (where child "title"/"desc" elements are not provided).

I'm not sure if this should be considered an enhancement or a low priority
bug...


[1]
http://www.nabble.com/tooltips-for-<use>-elements-in-JSVGCanvas--tc21837678.html
[2]
http://www.nabble.com/How-do-people-show-tooltips-over-reused-symbols-on-a-JSVGCanvas--Is-this-related-to-xlink:title--td17785257.html

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@...
For additional commands, e-mail: batik-dev-help@...


DO NOT REPLY [Bug 48073] Batik should display anchor "xlink:title" attribute contents as a tooltip

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://issues.apache.org/bugzilla/show_bug.cgi?id=48073

--- Comment #2 from Helder Magalhães <helder.magalhaes@...> 2009-10-28 09:11:28 UTC ---
Created an attachment (id=24434)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24434)
Testcase

Expected results:
* In the leftmost (red) circle, a tooltip containing "xlink:title attribute
tooltip";
* The center (green) circle is OK: it displays the "title" element contents;
* In the rightmost (blue) circle, a tooltip containing "xlink:title attribute
tooltip".

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@...
For additional commands, e-mail: batik-dev-help@...