Update of /sources/public/validator/httpd/cgi-bin In directory hutz:/tmp/cvs-serv15719/httpd/cgi-bin Modified Files: check Log Message: output the mode used by validator.nu, if found Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.652 retrieving revision 1.653 diff -u -d -r1.652 -r1.653 --- check 17 Mar 2009 16:27:34 -0000 1.652 +++ check 17 Mar 2009 16:50:32 -0000 1.653 @@ -976,10 +976,16 @@ $err->{src} = '...'; # do this with show_open_entities()? $err->{line} = $xml_error_line; $err->{char} = $xml_error_col; - $err->{num} = 'html5'; + $err->{num} = 'validator.nu'; $err->{msg} = $xml_error_msg; $err->{expl} = $xml_error_expl; - push @{$File->{Errors}}, $err; + + if ($err->{msg} =~ /Using the preset for (.*) based on the root namespace/ ) { + $File->{DOCTYPE} = $1; + } + else { + push @{$File->{Errors}}, $err; + } # @@ TODO message explanation / elaboration } }Received on Tuesday, 17 March 2009 16:50:43 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 17 March 2009 16:50:44 GMT