validator/httpd/cgi-bin check,1.527,1.528

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv10285

Modified Files:
	check 
Log Message:
not filtering the 'parsing without validation' error message for doctypeless sgml documents (that aren't html).

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.527
retrieving revision 1.528
diff -u -d -r1.527 -r1.528
--- check	21 Jun 2007 19:33:50 -0000	1.527
+++ check	26 Jun 2007 09:08:50 -0000	1.528
@@ -2387,8 +2387,10 @@
     if ($File->{Mode} eq 'XML' and lc($File->{Root}) ne 'html') {
       $File->{XMLWF_ONLY} = TRUE;
       add_warning('W09xml', {});
+      return; # don't report this as an error, just proceed
     }
-    return;
+    # if mode is not XML, we do report the error. It should not happen in the case of <html> without doctype,
+    # in that case the error message will be #344
   }
 
 

Received on Tuesday, 26 June 2007 09:09:11 UTC