- From: Doug Schepers <schepers@w3.org>
- Date: Thu, 13 Aug 2009 19:32:59 -0400
- To: www-svg <www-svg@w3.org>
Hi, Jonathan- You seem to be asking if you can legitimately use @xlink:title on any element, with the goal of providing a tooltip. I have 2 conflicting opinions on this. 1) This is an abuse of semantics. We clearly state in the SVG Tiny 1.2 spec what the role of @xlink:title is, with regards to <title> [1]: [[ Note that the 'title' element is distinct in purpose from the 'xlink:title' attribute of the 'a' element. The 'xlink:title' attribute content is intended not to describe the current resource, but the nature of the linked resource. ]] We also explicitly recommend that UAs display the contents of the <title> element as a tooltip (as Opera does). 2) On the other hand... since FF doesn't display the tooltip for <title> today, and you want some pragmatic effect... well, I'd recommend you use your own judgment. Sometimes you just have to do ugly hacks that work. Hopefully this will cease to be a problem in the fullness of time. [1] http://www.w3.org/TR/SVGTiny12/struct.html#TitleAndDescriptionElements Regards- -Doug Schepers W3C Team Contact, SVG and WebApps WGs ~:'' ありがとうございました wrote (on 8/13/09 10:33 AM): > mozilla xlink support in SVG has for some time raised a tooltip when > using xlink:title on any* element. > > to identify whether this is intentional, > a bug has been filed: > https://bugzilla.mozilla.org/show_bug.cgi?id=510202 > > regards > > ~:" > > *elements other than anchor > > On 13 Aug 2009, at 14:09, ~:'' ありがとうございました wrote: > >> SVG1.1 xlink: can xlink only be used with anchor element? >> >> the xlink specification appears to indicate that xlink can be used >> with any xml element [1] >> >> The SVG 1.1 specification mentions xlink in "URI reference attributes" >> section[2] >> which may suggest but does not direct that xlink may only be used with >> anchors. >> >> one proposed use case is: onEvent script is used to import data using >> xmlhttprequest >> >> for this purpose title is (may?) not appropriate, >> ie similar issue to alt and title in html, >> one describes image, other describes linked resource. >> >> regards >> >> Jonathan Chetwynd >> >> bugs filed: >> https://bugs.webkit.org/show_bug.cgi?id=16742 >> bug-350667@bugs.opera.com >> >> >> [1] http://www.w3.org/TR/xlink/#markup-reqs >> >> [2] http://www.w3.org/TR/SVG11/struct.html#XLinkTitleAttribute >>
Received on Thursday, 13 August 2009 23:33:12 UTC