validator does NOT validate XHTML 1.0

  This morning I discovered that XHTML docs without the XHTML namespace, 
validate on the W3's 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]." 
( 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"
<html xml:lang="en" lang="en">
    <title>non-valid XHTML 1.0</title>
    <h1 style="text-align: center;">Welcome!</h1>
       This is actually a well formed but non-valid XHTML 1.0
       strict document, yet the <a href=""
       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.

       <a href=""><img
          alt="Valid XHTML 1.0!" height="31" width="88" /></a>


MSN Photos is the easiest way to share and print your photos:

Received on Saturday, 17 August 2002 09:19:10 UTC