W3C home > Mailing lists > Public > www-svg@w3.org > August 2002

Re: [SVG1.0] no tspan allowed inside an anchor?

From: Thomas E Deweese <thomas.deweese@kodak.com>
Date: Mon, 19 Aug 2002 08:02:03 -0400
Message-ID: <15712.56891.652894.38213@frog.rl.kodak.com>
To: Tobias Reif <tobiasreif@pinkjuice.com>
Cc: www-svg@w3.org, AndrewWatt2001@aol.com

>>>>> "TR" == Tobias Reif <tobiasreif@pinkjuice.com> writes:

TR> I understood the solution (which doesn't really answer the
TR> original question though) you suggested via the DTD snippet, said
TR> thanks, [...] 

    I think he was trying to solve your problem not answer your

TR> so what is the problem now?

   So I'll answer the question.  If we allowed tspan inside an 'a'
element you could write:

<svg ...> <!-- outermost svg>
<a ...>
   <!-- note no enclosing text element -->
   <tspan >This is text that should be anchored</tspan>

   Since, you _really_ don't want to have tspans outside of a text
elements and since 'a' can appear almost anywhere the decision was
made to not allow tspan in an a.  You can always get the same result
by adding some additional 'a' elements in your text element (you may
have to break up a single logical 'a' into several smaller a's that
don't span tspans.

   You will of course point out that because 'a' can have things like
'path' 'g' 'circle' the problem really wasn't solved by this decision
it was just changed:

<text ...> <a ...> <circle .. ></a> </text> <!-- DTD valid -->

   To which one might answer, oh well can't fix everything.
Received on Monday, 19 August 2002 08:02:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:53 UTC