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

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 UTC