- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 21 Jun 2007 19:33:52 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin In directory hutz:/tmp/cvs-serv29711/httpd/cgi-bin Modified Files: check Log Message: adding a case for non-html, non-xml document without a doctype. Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.526 retrieving revision 1.527 diff -u -d -r1.526 -r1.527 --- check 12 Jun 2007 11:58:58 -0000 1.526 +++ check 21 Jun 2007 19:33:50 -0000 1.527 @@ -2416,6 +2416,12 @@ 'XHTML 1.0 Transitional' : 'HTML 4.01 Transitional' ); add_warning('W09', {W09_dtd => $dtd}); } + else { # not html root element, we are not using fallback + if ($File->{Mode} ne 'XML') { + $File->{'Is Valid'} = FALSE; + add_warning('W09nohtml', {}); + } + } return; # Don't report this as a normal error. }
Received on Thursday, 21 June 2007 19:33:55 UTC