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

validator/httpd/cgi-bin check,1.408,1.409

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 24 Mar 2005 09:01:39 +0000
To: www-validator-cvs@w3.org
Message-ID: <E1DEODj-0006g9-B8@lionel-hutz.w3.org>

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

Modified Files:
	check 
Log Message:

No doctype override warning if the override == the actual doctype
fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=48


Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.408
retrieving revision 1.409
diff -u -d -r1.408 -r1.409
--- check	24 Mar 2005 08:37:26 -0000	1.408
+++ check	24 Mar 2005 09:01:37 -0000	1.409
@@ -1334,7 +1334,7 @@
   $File->{Content} = [split /\n/, $HTML];
 
   if ($seen) {
-    unless ($File->{Opt}->{FB}->{DOCTYPE}) {
+    unless (($File->{Opt}->{FB}->{DOCTYPE}) or ($File->{Opt}->{DOCTYPE} eq $CFG->{Types}->{$File->{DOCTYPE}}->{Display} )) {
       &add_warning('W13', {
         W13_org => $org_dtd,
         W13_new => $File->{Opt}->{DOCTYPE},
Received on Thursday, 24 March 2005 09:01:39 GMT

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