diff options
author | ot <ot@localhost> | 2007-06-26 09:08:50 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-06-26 09:08:50 +0000 |
commit | 1cc497c765b355bf6b54828278d6926e592d0f39 (patch) | |
tree | 8cadf39a43ee5b15396b4b80f6afd7e722499f83 | |
parent | 37bd5e6ab036bd08ccf7195e40836f00ea584ac1 (diff) | |
download | markup-validator-1cc497c765b355bf6b54828278d6926e592d0f39.zip markup-validator-1cc497c765b355bf6b54828278d6926e592d0f39.tar.gz markup-validator-1cc497c765b355bf6b54828278d6926e592d0f39.tar.bz2 |
not filtering the 'parsing without validation' error message for doctypeless sgml documents (that aren't html).
-rwxr-xr-x | httpd/cgi-bin/check | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index 609f1a4..08ea690 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -14,7 +14,7 @@ # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # -# $Id: check,v 1.527 2007-06-21 19:33:50 ot Exp $ +# $Id: check,v 1.528 2007-06-26 09:08:50 ot Exp $ # # Disable buffering on STDOUT! @@ -181,7 +181,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.527 $; + $VERSION = q$Revision: 1.528 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -2387,8 +2387,10 @@ sub W3C::Validator::SAXHandler::error 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 } |