Re: Title as attribute or element?

Thanks for all the very informative help - yes, I now see the problems
inherent in using xlink:title as that has a wholly different intended
usage. I also realize that I am coding to the quirks of a particular
browser - FireFox. At the same time, going back and adding <desc> or
<title> elements for hundreds of plants feels like overkill and a heck
of a lot more work for a hand coder. I must admit that I do not know
about SVGT1.2 and declarative animation. I have to imagine that it
requires more work than using <desc>. I almost feel I need an attribute
tooltip="Clerodendrum inerme" that would function like the title
attribute on the HTML image element, just a simple way to pop up tool
tip with the name of the plant at that location - whether hovered by a
mouse or "selected" via the tab key.

Separately, FireFox renders title="" attribute on a shape element as a
tooltip even without the xlink prefix. I expect that this is a bug as
well. I would note Opera ignores both the xlink:title and title
attribute when used in a shape element such as circle. As long as
FireFox will eventually render the <desc> tag as a tooltip for the two
circles in code such as:

<g fill="violet" stroke="darkmagenta" stroke-width="1px">
  <desc>Clerodendrum inerme (ilau)</desc>
  <circle cx="6970" cy="-5950" r="2"  />
  <circle cx="6960" cy="-5950" r="2"  />
</g>

then I will not have to write:

<g fill="violet" stroke="darkmagenta" stroke-width="1px">
  <desc>Clerodendrum inerme (ilau)</desc>
  <circle xlink:title="Clerodendrum inerme (ilau)" cx="6970" cy="-5950"
r="2"  />
  <circle xlink:title="Clerodendrum inerme (ilau)" cx="6960" cy="-5950"
r="2"  />
</g>

Again, my thanks for the learnings.
-- 

Dana Lee Ling
Professor
College of Micronesia-FSM/National site
http://www.comfsm.fm/~dleeling/ <http://www.comfsm.fm/%7Edleeling/>

Historically diverse, uniquely Micronesian and globally connected, the
College of Micronesia-FSM is a continuously improving and student
centered institute of higher education. The college is committed to
assisting in the developing of the nation by providing academic, career
and technical educational opportunity for learners in the Federated
States of Micronesia.

Go Sharks!

Received on Saturday, 6 December 2008 03:50:50 UTC