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

XHTML valid but not

From: Bertilo Wennergren <bertilow@hem.passagen.se>
Date: Fri, 26 May 2000 12:37:55 +0200
Message-ID: <009f01bfc6fe$7612ce40$fbe05dd5@chello.se>
To: <www-validator@w3.org>, <XHTML-L@egroups.com>

The W3 validator, http://validator.w3.org/>, for some reason 
(have I missed something?) only checks XHTML documents for 
wellformedness (and even that is doubtful...) and ignores 
validity.

The following code, which is most certainly not valid XHTML 1.0
nevertheless gets:

   "Congratulations, this document validates as XHTML 1.0 Strict!"

Here goes:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<what xmlns="http://www.w3.org/1999/xhtml">
<gog>
<bla>Test</bla>
</gog>
<huh>

<foo wrong="bad">
Text
</foo>

</huh>
</what>

This mad test doc can be found at:

  <http://www.concinnity.se/bertilow/div/mad.html>

I'm not even sure it's well formed since the doctype says the
root element is "html", but I've used "what" as root.

I did press a button that said "Validate this page", not
"Check this page for XML well-formedness".

Why? What? When? Who? ...

#####################################################################
                         Bertilo Wennergren
                 <http://purl.oclc.org/net/bertilo>
                     <bertilow@hem.passagen.se>
#####################################################################
Received on Friday, 26 May 2000 06:34:01 GMT

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