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

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

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 25 Mar 2005 04:44:35 +0000
To: www-validator-cvs@w3.org
Message-ID: <E1DEggV-0008F1-OX@lionel-hutz.w3.org>

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 GMT

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