validator/httpd/cgi-bin check,1.654,1.655

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

Modified Files:
	check 
Log Message:
fix to the fuzzy matching in case the attribute exists but not allowed in current context - addresses http://lists.w3.org/Archives/Public/www-validator/2009May/0025.html

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.654
retrieving revision 1.655
diff -u -d -r1.654 -r1.655
--- check	17 Mar 2009 18:03:43 -0000	1.654
+++ check	19 May 2009 22:50:05 -0000	1.655
@@ -3151,9 +3151,9 @@
           $err->{msg} = "Attribute \"".$bogus_elt_attr."\" is not a valid attribute";
       }
       
-      if((exists $self->{CFG}->{Attributes}->{lc($bogus_elt_attr)}) and (lc($bogus_elt_attr) eq $bogus_elt_attr) and ($err->{num} eq '108')) {
+      if((exists $self->{CFG}->{Attributes}->{lc($bogus_elt_attr)}) and ($err->{num} eq '108')) {
           # attribute not available in this context.
-          $err->{msg} = 'Attribute "'.$bogus_elt_attr.'" exists, but can not be used for this element.';
+          $err->{msg} = 'Attribute "'.lc($bogus_elt_attr).'" can not be used for this element.';
       }
       elsif ( (
              ((exists $self->{CFG}->{Attributes}->{lc($bogus_elt_attr)}) and ($err->{num} eq '108'))

Received on Tuesday, 19 May 2009 22:50:16 UTC