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

validator/httpd/cgi-bin check,1.496,1.497

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 04 Apr 2007 10:26:03 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1HZ2gl-0002zn-JO@lionel-hutz.w3.org>

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv10969/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Went through all the RECs of the document types we support, and found which ones require 
the xmlns attribute on the root element, and which don't. Making the check script whine 
about its absence only if required. 



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.496
retrieving revision 1.497
diff -u -d -r1.496 -r1.497
--- check	4 Apr 2007 09:53:16 -0000	1.496
+++ check	4 Apr 2007 10:26:01 -0000	1.497
@@ -2233,7 +2233,8 @@
 
       }
     }
-    if ($has_xmlns == FALSE){
+    if (($has_xmlns == FALSE)  and ($CFG->{Types}->{$self->{_file}->{DOCTYPE}}->{"Namespace Required"} eq TRUE )){
+      # whine if the root xmlns attribute is noted as required by spec, but not present
       my $err;
       my $location = $self->{_parser}->get_location();
       $err->{src}  = '...'; # do this with show_open_entities()?
Received on Wednesday, 4 April 2007 10:26:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:56 GMT