- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 09 Apr 2007 07:51:32 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv6771/httpd/cgi-bin
Modified Files:
check
Log Message:
Fixing display of fallback doctype when missing
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.497
retrieving revision 1.498
diff -u -d -r1.497 -r1.498
--- check 4 Apr 2007 10:26:01 -0000 1.497
+++ check 9 Apr 2007 07:51:30 -0000 1.498
@@ -2315,8 +2315,8 @@
# No DOCTYPE.
if ($err->{msg} =~ m(prolog can\'t be omitted)) {
- my $dtd = ($File->{Mode} eq 'SGML' ?
- 'HTML 4.01 Transitional' : 'XHTML 1.0 Transitional');
+ my $dtd = ($File->{Mode} eq 'XML' ?
+ 'XHTML 1.0 Transitional' : 'HTML 4.01 Transitional' );
add_warning('W09', {W09_dtd => $dtd});
return; # Don't report this as a normal error.
Received on Monday, 9 April 2007 07:51:41 UTC