W3C home > Mailing lists > Public > www-validator@w3.org > January 2007

Re: No error for missing namespace attribute

From: olivier Thereaux <ot@zoy.org>
Date: Wed, 3 Jan 2007 10:37:48 -0500
Message-Id: <DBEC8D19-254C-4D80-98E2-620FFCDA4A33@w3.org>
Cc: "Grant, Melinda" <melinda.grant@hp.com>, www-validator@w3.org
To: Jukka K. Korpela <jkorpela@cs.tut.fi>

Hello,

On Jan 2, 2007, at 19:02 , Jukka K. Korpela wrote:
> On Tue, 2 Jan 2007, Grant, Melinda wrote:
>
>> The document at http://www.savagecreek.net/CSS/t1.htm passes  
>> validation
>> although it is missing the mandatory html namespace attribute.
>
> The reason is that the requirement on explicit use of the xmlns  
> attribute has been expressed in prose only, not in the DTDs. The  
> reason to this is that it cannot be expressed in a DTD, due to the  
> limitations of the formalism. The attribute is declared #FIXED,  
> which means by definition that the attribute, if present, must have  
> the exact value given, but it does not specify that it is required.

Correct. See also http://lists.w3.org/Archives/Public/www-html-editor/ 
2000OctDec/0045 for the rationale behind the HTML Working Group's  
choice to declare it as #FIXED rather than #REQUIRED. Regrettable  
from the perspective of validation, but the culprit here is the DTD,  
not HTML.

There is an entry in the validator's bugzilla[1] on this issue, if  
anyone is interested in either adding this check to the validator or  
making another small checker that could later be integrated with the  
validator through the Unicorn[2] framework, feel free.

[1] http://www.w3.org/Bugs/Public/show_bug.cgi?id=68
[2] http://www.w3.org/QA/2006/obs_framework/
-- 
olivier
Received on Wednesday, 3 January 2007 15:38:06 GMT

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