validator/httpd/cgi-bin check,1.568,1.569

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

Modified Files:
	check 
Log Message:
in sgml mode, reporting shorttag usage as a warning. TODO: add explanations for the warning messages

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.568
retrieving revision 1.569
diff -u -d -r1.568 -r1.569
--- check	12 Sep 2007 06:12:43 -0000	1.568
+++ check	25 Sep 2007 06:43:45 -0000	1.569
@@ -773,6 +773,10 @@
     push(@spopt, 'xml');
     # FIXME when fixed s:p:o gets released
   }
+  else {
+    # add warnings for shorttags
+    push(@spopt, 'min-tag');
+  }
 
 
   #
@@ -2583,6 +2587,14 @@
      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

Received on Tuesday, 25 September 2007 06:43:59 UTC