W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

validator/httpd/cgi-bin check,1.692,1.693

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 15 Sep 2009 19:24:42 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mnddq-0001uN-Gh@lionel-hutz.w3.org>
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv7321

Modified Files:
	check 
Log Message:
Don't ignore non-document errors from the HTML 5 validator (#6747).

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.692
retrieving revision 1.693
diff -u -d -r1.692 -r1.693
--- check	15 Sep 2009 19:05:55 -0000	1.692
+++ check	15 Sep 2009 19:24:40 -0000	1.693
@@ -1038,7 +1038,9 @@
       my $message_type = $message_node->localname;
       my $err;
       my ($html5_error_line, $html5_error_col, $html5_error_msg, $html5_error_expl);
-      if  ($message_type eq "error") {
+      # TODO: non-document errors should receive different/better treatment,
+      #       but this is better than hiding all problems for now (#6747)
+      if ($message_type eq "error" || $message_type eq "non-document-error") {
         $err->{type} = "E";
         $File->{'Is Valid'} = FALSE;
       }
Received on Tuesday, 15 September 2009 19:24:51 GMT

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