validator/httpd/cgi-bin check,1.405,1.406

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

Modified Files:
	check 
Log Message:
warnings 14 and 16 appear to be duplicates of the same case (no doctype 
found, falling back to X). 

In sub override_doctype there is a call to message 14 when fbd is enabled,
but message 14 is "hardcoded" to a HTML 4.01 fallback (whereas message 16
properly uses the value of $File->{Opt}->{DOCTYPE}). This looks wrong.

-> consolidating by systematically using warning 16.

(this may obsolete warning number 14 in $templates/warnings.tmpl)



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.405
retrieving revision 1.406
diff -u -d -r1.405 -r1.406
--- check	1 Mar 2005 19:04:53 -0000	1.405
+++ check	1 Mar 2005 20:29:34 -0000	1.406
@@ -1332,7 +1332,7 @@
     unshift @{$File->{Content}}, $dtd;
 
     if ($File->{Opt}->{FB}->{DOCTYPE}) {
-      &add_warning('W14', {});
+      &add_warning('W16', {W16_dtd => $File->{Opt}->{DOCTYPE}});
       $File->{Tentative} |= T_ERROR; # Tag it as Invalid.
     } else {
       &add_warning('W15', {W15_dtd => $File->{Opt}->{DOCTYPE}});

Received on Tuesday, 1 March 2005 20:29:37 UTC