validator does NOT validate XHTML 1.0

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 UTC