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>

  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"
<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="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.

       <a href="http://validator.w3.org/check/referer"><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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:30:36 UTC