summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorot <ot@localhost>2005-03-25 04:44:33 +0000
committerot <ot@localhost>2005-03-25 04:44:33 +0000
commit8dcaff1d8a4ac432edcf14a299410f7699abee11 (patch)
tree860fa1b05e18f903460af4fd999f31178d591beb
parentbf07809ddde276cf8bcce2c1ca30c70d3964956f (diff)
downloadmarkup-validator-8dcaff1d8a4ac432edcf14a299410f7699abee11.zip
markup-validator-8dcaff1d8a4ac432edcf14a299410f7699abee11.tar.gz
markup-validator-8dcaff1d8a4ac432edcf14a299410f7699abee11.tar.bz2
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
-rwxr-xr-xhttpd/cgi-bin/check6
1 files changed, 3 insertions, 3 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 4223bbe..21b8df7 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -9,7 +9,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.410 2005-03-25 03:42:09 ot Exp $
+# $Id: check,v 1.411 2005-03-25 04:44:33 ot Exp $
#
# Disable buffering on STDOUT!
@@ -220,7 +220,7 @@ Directory not readable (permission denied): @_r
#
# Strings
- $VERSION = q$Revision: 1.410 $;
+ $VERSION = q$Revision: 1.411 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
#
@@ -1424,7 +1424,7 @@ sub parse_errors ($$) {
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.
}