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

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 UTC