W3C home > Mailing lists > Public > www-svg@w3.org > February 2007

Re: <a> in text environment

From: T Rowley <tor@cs.brown.edu>
Date: Thu, 15 Feb 2007 15:34:17 -0600
Message-ID: <45D4D1D9.1010306@cs.brown.edu>
To: Chris Lilley <chris@w3.org>
Cc: www-svg <www-svg@w3.org>

On 2/14/07 8:35 PM, Chris Lilley wrote:
> Test 3 is unfortunately not forbidden by the DTD, mainly because DTDs
> suck. (HTML has the same problem - if you have an invalid document
> where a foo is not allowed inside a bar, you can mostly make it DTD
> valid by wrapping the foo in <a href="whatever"> </a> because the
> content model for the a element is very loose).
> 
> We fixed that in SVG 1.2 by using RelaxNG. The content model of an a
> element is now context dependent - its the content model of its parent
> element.  Which prevents you putting circles inside text or, indeed,
> tspans inside groups, just by hiding them inside a link.

It seems like a bad idea to be restricting things more in 1.2 vs 1.1 - 
content should be forward compatible between specification versions, at 
least until a theoretical scorched-earth SVG 2.0 comes along.
Received on Thursday, 15 February 2007 21:34:39 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:36 GMT