Re: <a> in text environment

On Thursday, February 15, 2007, 10:53:26 PM, thomas wrote:

tdkc> Hi Chris,

tdkc> www-svg-request@w3.org wrote on 02/14/2007 09:35:45 PM:

>> TR> and have run across a couple oddities that appear allowed by the DTD 
tdkc> in
>> TR> SVG 1.1, but are a bit strange.
>> TR>      <text y="75">test2(1)<a 
tdkc> transform="translate(0,25)">test2(2)</a></text>

>> TR> Firefox (with a patch I'm currently reviewing) and Opera show 
tdkc> "test2(2)"
>> TR> offset vertically and the circle.  Batik and ASV3 ignore the 
tdkc> transform
>> TR> and circle.  Webkit doesn't show content for any of the <a>s.
>> 
>> Test 2 is correct.

tdkc>    Is it?  I had always assumed that 'a' in text was essentially
tdkc> a 'tspan'.

I recall that analogy being used before, yes.

tdkc>  The need to support 'transform' on 'a' in the middle
tdkc> of text adds a lot of complexity as well as raising questions.
tdkc> It's not so bad in the above example but he really should have
tdkc> had 'transform="rotate(90, 25, 0)"'.

You mean, where does the follow on text go? Yes I can see your point.

OK I will raise it as an issue in the WG.

tdkc>    I mean seriously if you allow transform on 'a' in text why doesn't
tdkc> 'tspan' have it?

True.

>> Test 3 is unfortunately not forbidden by the DTD, mainly because DTDs
>> suck.

tdkc>    Yes, I thought that transform on 'a' would fall into the same category.
tdkc> 'a' in text should really be a different element (different content and
tdkc> attributes) but DTD doesn't let you specify that.

Agreed. This is what we are using RNG to do.



-- 
 Chris Lilley                    mailto:chris@w3.org
 Interaction Domain Leader
 Co-Chair, W3C SVG Working Group
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG

Received on Thursday, 15 February 2007 22:04:46 UTC