summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorot <ot@localhost>2009-05-19 22:50:05 +0000
committerot <ot@localhost>2009-05-19 22:50:05 +0000
commit3e0a6eb4bd07140f95533ba8f8585ffe63cab918 (patch)
treefb49a11b00e4f73785a2acc0cb0ce017389fd8b6
parentf248a0595676c21ccbf1191c5300ca9c135a624e (diff)
downloadmarkup-validator-3e0a6eb4bd07140f95533ba8f8585ffe63cab918.zip
markup-validator-3e0a6eb4bd07140f95533ba8f8585ffe63cab918.tar.gz
markup-validator-3e0a6eb4bd07140f95533ba8f8585ffe63cab918.tar.bz2
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
-rwxr-xr-xhttpd/cgi-bin/check8
1 files changed, 4 insertions, 4 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index b1c47b4..12b9b28 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -14,7 +14,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.654 2009-03-17 18:03:43 ville Exp $
+# $Id: check,v 1.655 2009-05-19 22:50:05 ot Exp $
#
# Disable buffering on STDOUT!
$| = 1;
@@ -198,7 +198,7 @@ Directory not readable (permission denied): @_r
#
# Strings
- $VERSION = q$Revision: 1.654 $;
+ $VERSION = q$Revision: 1.655 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
#
@@ -3151,9 +3151,9 @@ sub error
$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'))