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

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

Modified Files:
	check 
Log Message:
Using the proper warning text when there is no doctype found.

See: http://dev.w3.org/cvsweb/validator/share/templates/en_US/warnings.tmpl.diff?r1=1.8&r2=1.9&f=h
and http://lists.w3.org/Archives/Public/www-validator-cvs/2005Mar/0066.html
for the distinction between the two swapped warnings.

This should fix http://www.w3.org/Bugs/Public/show_bug.cgi?id=1134



Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.410
retrieving revision 1.411
diff -u -d -r1.410 -r1.411
--- check	25 Mar 2005 03:42:09 -0000	1.410
+++ check	25 Mar 2005 04:44:33 -0000	1.411
@@ -1424,7 +1424,7 @@
     if ($err->{msg} =~ m(prolog can\'t be omitted)) {
       my $dtd = ($File->{Mode} == MODE_SGML ?
                    'HTML 4.01 Transitional' : 'XHTML 1.0 Transitional');
-      &add_warning('W16', {W16_dtd => $dtd});
+      &add_warning('W09', {W09_dtd => $dtd});
       next; # Don't report this as a normal error.
     }
 

Received on Friday, 25 March 2005 04:44:36 UTC