W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2005

validator/httpd/cgi-bin check,1.411,1.412

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 31 Mar 2005 07:43:44 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1DGuLA-00012v-FN@lionel-hutz.w3.org>

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

Modified Files:
	check 
Log Message:
This should fix bug 941, for the doctype part.

As written in 
http://www.w3.org/Bugs/Public/show_bug.cgi?id=941#c3
I am not entirely satisfied by the solution, but it is a working solution, 
and will do for the time being (?)...



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.411
retrieving revision 1.412
diff -u -d -r1.411 -r1.412
--- check	25 Mar 2005 04:44:33 -0000	1.411
+++ check	31 Mar 2005 07:43:42 -0000	1.412
@@ -838,6 +838,9 @@
 } else {
   &prep_template($File, $T);
 
+  
+  
+  
   if (! $File->{Doctype} and ($File->{Version} eq 'unknown' or $File->{Version} eq 'SGML')) {
       $T->param(file_version => '(no Doctype found)');
   }
@@ -930,6 +933,13 @@
   $T->param(file_namespace  => $File->{Namespace});
   my @nss                   =  map({uri => $_}, @{$File->{Namespaces}});
   $T->param(file_namespaces => \@nss) if @nss;
+  
+  if ($File->{Opt}->{DOCTYPE}) {
+      my $over_doctype_param = "override $File->{Opt}->{DOCTYPE}";
+       $T->param($over_doctype_param => TRUE);
+      
+  }
+  
 }
 
 #
Received on Thursday, 31 March 2005 07:43:45 GMT

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