diff options
-rwxr-xr-x | httpd/cgi-bin/check | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index f406bad..b6bd8eb 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.568 2007-09-12 06:12:43 ot Exp $ +# $Id: check,v 1.569 2007-09-25 06:43:45 ot Exp $ # # Disable buffering on STDOUT! @@ -186,7 +186,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.568 $; + $VERSION = q$Revision: 1.569 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -773,6 +773,10 @@ sub parse (\$) { push(@spopt, 'xml'); # FIXME when fixed s:p:o gets released } + else { + # add warnings for shorttags + push(@spopt, 'min-tag'); + } # @@ -2583,6 +2587,14 @@ sub W3C::Validator::SAXHandler::error return; # don't report this, just proceed } + if (($err->{num} eq '248') or ($err->{num} eq '247') or ($err->{num} eq '246')) { + # these two errors should be triggered by -wmin-tag to report shorttag used, + # but we're making them warnings, not errors + # see http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.7 + $err->{type} = "W"; + } + + # Workaround for onsgmls as of 1.5 sometimes allegedly reporting errors # beyond EOL. If you see this warning in your web server logs, please # let the validator developers know, see http://validator.w3.org/feedback.html |