Re: Nested link bug?

On Tue, 27 Apr 2004, Kai Hendry wrote:
>
> http://www.cs.helsinki.fi/u/hendry/temp/test1/
>
> This shouldn't validate should it ?
>
> <a href="http://cs/"><b>test <a href="http://different/">test 2</a></b></a>

It's non-compliant, but it is XML-valid because XML DTDs cannot describe
that conformance constraint.

SGML DTDs can, so if you changed that to an HTML4 document instead of an
XHTML document, you would find it no longer validated.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
U+1047E                                         /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 26 April 2004 19:34:12 UTC