- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 28 Jan 2009 15:30:19 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv27433/httpd/cgi-bin
Modified Files:
check
Log Message:
Adding W27 (suggest adding charset info within document) and W28 (explanation of UTF-8 force in direct input mode),
plus softening the wording of the preparse warning-info section of validation results.
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.638
retrieving revision 1.639
diff -u -d -r1.638 -r1.639
--- check 18 Jan 2009 17:26:04 -0000 1.638
+++ check 28 Jan 2009 15:30:17 -0000 1.639
@@ -533,9 +533,8 @@
$File->{Charset}->{Override} = lc($override);
if ($File->{Opt}->{FB}->{Charset}) { # charset fallback mode
- unless ($File->{Charset}->{Use}) {
+ unless ($File->{Charset}->{Use}) { # no charset detected, actual fallback
&add_warning('W02', {W02_charset => $File->{Charset}->{Override}});
-
$File->{Tentative} |= T_ERROR; # Tag it as Invalid.
$File->{Charset}->{Use} = $File->{Charset}->{Override};
}
@@ -561,6 +560,14 @@
}
}
+if ($File->{'Direct Input'}) { #explain why UTF-8 is forced
+ &add_warning('W28', {});
+}
+unless ($File->{Charset}->{XML} || $File->{Charset}->{META}){ #suggest character encoding info within doc
+ &add_warning('W27', {});
+}
+
+
#
# Abort if an error was flagged while finding the encoding.
&abort_if_error_flagged($File, O_CHARSET|O_DOCTYPE);
Received on Wednesday, 28 January 2009 15:30:29 UTC