Re: No error for missing namespace attribute

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 UTC