Re: Conformation and the W3C Validator

by Kynn Bartlett <kynn-hwg(at)idyllmtn.com>

 Date:  Fri, 25 May 2001 09:22:29 -0700
 To:  Sauron(at)pp.sbbs.se
 Cc:  hwg-xml(at)hwg.org
 In-Reply-To:  hwg
  todo: View Thread, Original
Hi, you can't close your tags within your HEAD element with a
/ in HTML.  The compatibility rules define how things -should- work
on -existing HTML browsers; they don't define how to make XHTML
into valid HTML syntax.

You can't really do both -- you can't write XHTML that is valid
HTML or write HTML that is valid XHTML.

The compatibility rules define how your _XHTML_ can work as
_HTML_, but it's still XHTML.  This means that your DOCTYPE 
declaration should be XHTML 1, not HTML 4.01

A tag of the form <meta /> in HTML throws an error, because the
ending / construction is not HTML syntax.  (It becomes "random
gibberish" which is allowed in the BODY but not allowed in the
HEAD; this is why you notice it for META and not for BR.)  If
you are using XHTML syntax, you should be using XHTML DOCTYPE.

Hope this helps.

--Kynn

At 05:32 PM 5/24/2001 , Stefan Huszics wrote:
>Hi
>
>I'm been trying to work my way over to XML/XHTML by starting to
>introduce the things under compability in the XHTML 1.0 spec in my HTML
>4.01 documents.
>
>However for some reson my code doesn't validate at the W3C validators,
>and I just don't understand why.
>For instance this simple code below produces many errors (because on the
>traling /> in the META and LINK entities)
>-----
><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
>Some text
>----
>
>Now, am I missing something here (like why you are not allowed to close
>the META & LINK entities for some reason) ?
>
>Or is this plain simply a bug in the Validator and in that case where/to
>whom do I turn to have it fixed?
>
>-- 
>/Stefan Huszics
>
>Software never has bugs. It just develops random features. =)
>
>PS I'm using Mozilla 0.9 as the mail proggy and have listed HWG.org
>to only accepting plaintext. If for some reason you are still receiving
>HTML mails, please tell me and I will disable it entirely when mailing
>to HWG.
>
>

-- 
Kynn Bartlett                                    mailto:kynn(at)hwg.org
Board Member, HTML Writers Guild                 http://www.hwg.org/
AWARE Center Director                    http://www.awarecenter.org/

HWG hwg-xml mailing list archives, maintained by Webmasters