- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 30 Apr 2007 16:09:11 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin In directory hutz:/tmp/cvs-serv16859 Modified Files: check Log Message: Applying patch from http://www.w3.org/Bugs/Public/show_bug.cgi?id=800 based on ideas and code proposed by Shane McCarron. Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.513 retrieving revision 1.514 diff -u -d -r1.513 -r1.514 --- check 30 Apr 2007 13:36:34 -0000 1.513 +++ check 30 Apr 2007 16:09:09 -0000 1.514 @@ -2339,6 +2339,17 @@ $err->{type} = $mess->{primary_message}{Severity}; $err->{msg} = $mess->{primary_message}{Text}; + # our parser OpenSP is not quite XML-aware, or XML Namespaces Aware, + # so we filter out a few errors for now + + if ($File->{Mode} eq 'XML') { + if ($err->{num} eq '108' and $err->{msg} =~ m{ "xmlns:\S+"}) { + # the error is about a missing xmlns: attribute definition" + return ; # this is not an error, 'cause we said so + } + } + + # ... $File->{'Is Valid'} = FALSE if $err->{type} eq 'E';
Received on Monday, 30 April 2007 16:09:13 UTC