Re: Bug in Meta handling

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 18:27:24 UTC