Index: check =================================================================== RCS file: /sources/public/validator/httpd/cgi-bin/check,v retrieving revision 1.503 diff -u -r1.503 check --- check 24 Apr 2007 06:48:04 -0000 1.503 +++ check 28 Apr 2007 03:38:27 -0000 @@ -427,6 +427,7 @@ $File->{Opt}->{'Max Errors'} = $q->param('me') ? $q->param('me') : ''; $File->{Opt}->{'Prefill'} = $q->param('prefill') ? TRUE : FALSE; $File->{Opt}->{'Prefill Doctype'} = $q->param('prefill_doctype') ? $q->param('prefill_doctype') : 'html401'; +$File->{Opt}->{'Ignore XMLNS Errors'} = TRUE ; # # "Fallback" info for Character Encoding (fbc), Content-Type (fbt), @@ -2347,6 +2348,14 @@ $err->{type} = $mess->{primary_message}{Severity}; $err->{msg} = $mess->{primary_message}{Text}; + # XMLNS attributes can be ignored + if ($File->{Opt}->{'Ignore XMLNS Errors'} == TRUE) { + if ($err->{msg} =~ m{there is no attribute "xmlns:}) { + # 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';