W3C home > Mailing lists > Public > www-validator@w3.org > December 2000

Re: Bug in Meta handling

From: <hutch@psfc.mit.edu>
Date: Sun, 24 Dec 2000 23:23:48 -0500 (EST)
To: Kynn Bartlett <kynn@idyllmtn.com>
cc: Nick Kew <nick@webthing.com>, www-validator@w3.org
Message-ID: <Pine.LNX.4.21.0012242310530.7628-100000@silas.psfc.mit.edu>
What puzzles me, though, is that <br /> <hr /> <img /> etc are in fact not
complained about by the validator AFAIK, whereas <meta /> is. 

As for XHTML/HTML, are you seriously saying that W3C has adopted a
standard for the "next generation of HTML", namely XHTML, that is
incompatible with HTML in both directions? (In other words neither
standard can parse documents expressed in any useful subset of the
other). If this is really so, then what on earth are they up to?

	Ian Hutchinson, Plasma Science and Fusion Center, MIT. 
	http://psfc.mit.edu/~hutch/home.html

On Sun, 24 Dec 2000, Kynn Bartlett wrote:

> At 07:08 AM 12/23/2000 , hutch@psfc.mit.edu wrote:
> >Why is it my problem for <meta /> but not for e.g. <br /> <hr /> <img />
> >and so on? It seems that <meta /> is just following
> >http://www.w3.org/TR/xhtml1/#guidelines
> >         Ian Hutchinson
> 
> I think what Nick is trying to say is that the '/>' ending is not
> valid in HTML 4.0 at all.  In HTML, you indicate a self-closing
> tag by just '<tag>' -- '<tag/>' (or '<tag />') has no meaning.
> 
> The compatibility suggestions in the XHTML spec are designed to
> tell you how to write XHTML which can be understood by HTML 
> browsers, not to tell you how to write XHTML which validates as
> HTML.  In general, XHTML will -not- validate as HTML.
> 
> <br />, <hr /> and <img /> won't be valid in any HTML document,
> because that's not HTML syntax, that's XML (and thus XHTML)
> syntax.
> 
> --Kynn, coming in late, hope I'm answering the right question
> 
> >On Sat, 23 Dec 2000, Nick Kew wrote:
> >
> > > On Thu, 21 Dec 2000, Ian Hutchinson wrote:
> > > 
> > > > Inside an HTML 4.0 transitional document,
> > > 
> > > > <meta name="GENERATOR" content="TtH 2.84" />
> > > 
> > > That appears to be your problem.  If you declare it as HTML4, you must
> > > use HTML syntax.  Alternatively, you can declare it XHTML, and use
> > > XHTML syntax including the trailing slash in empty elements.
> > > 
> > > -- 
> > > Nick Kew
> > > 
> 
> -- 
> Kynn Bartlett  <kynn@idyllmtn.com>                    http://kynn.com/
> Sr. Engineering Project Leader, Reef-Edapta       http://www.reef.com/
> Chief Technologist, Idyll Mountain Internet   http://www.idyllmtn.com/
> Contributor, Special Edition Using XHTML     http://kynn.com/+seuxhtml
> Unofficial Section 508 Checklist           http://kynn.com/+section508
> 
> 
Received on Sunday, 24 December 2000 23:37:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:55 GMT