W3C home > Mailing lists > Public > www-validator@w3.org > August 2002

validator does NOT validate XHTML 1.0

From: Devon Y. <vehementpetal@hotmail.com>
Date: Sat, 17 Aug 2002 05:12:03 -0400 (EDT)
To: www-validator@w3.org
Message-ID: <F8943gDXUf8EjmiDrDJ0000a926@hotmail.com>




Hi,
  This morning I discovered that XHTML docs without the XHTML namespace, 
validate on the W3's http://validator.w3.org/. This is 100% wrong according 
to the XHTML 1.0 Recommendation, which says "The root element of the 
document must contain an xmlns declaration for the XHTML namespace [XMLNS]." 
(http://www.w3.org/TR/xhtml1/#docconf). I can only imagine how much this 
error is (and will be) affecting websites.

  Here's a sample document that will validate, but truly is NOT valid at all 
due to lacking the XHTML xmlns:


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" lang="en">
  <head>
    <title>non-valid XHTML 1.0</title>
  </head>
  <body>
    <h1 style="text-align: center;">Welcome!</h1>
    <p>
       This is actually a well formed but non-valid XHTML 1.0
       strict document, yet the <a href="http://validator.w3.org/"
       title="Validate your markup!">W3 validator</a>, validates
       it. This document <strong>must</strong> have the xhtml 1.0
       namespace declared in it's root element.
    </p>

    <p>
       <a href="http://validator.w3.org/check/referer"><img
          src="http://www.w3.org/Icons/valid-xhtml10"
          alt="Valid XHTML 1.0!" height="31" width="88" /></a>
    </p>
  </body>
</html>


Devon


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx
Received on Saturday, 17 August 2002 09:19:10 GMT

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