On Mon, 2 Aug 2004, Ian B. Jacobs wrote: > Hi Validator Team, > > Could you help with this question about whether > <a name="foo"/> is valid xhtml 1.0 (I think it isn't) or, if > not, why the validator doesn't complain? It's perfectly valid. Nothing in XHTML precludes <a> being empty, and XML rules require equivalence of <a/> and <a></a>. The only thing it violates is the non-normative and problematic Appendix C. > > This page was sent as text/html but uses tags of the form <a name="foo" > > /> which does not actually close the <a> tag in conforming HTML4 > > user-agents (I'm using safari 1.2.2). Indeed, this is why HTML4 is better-suited to the web today than XHTML. Alternatively, if tou have valid but non-Appendix-C-conforming XHTML, you can use mod_xhtml to ensure that it is Appendix-C-compliant when it is served. -- Nick KewReceived on Monday, 2 August 2004 18:11:57 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:14 GMT