diff options
author | ot <ot@localhost> | 2005-03-24 09:01:37 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2005-03-24 09:01:37 +0000 |
commit | 3e732ba03eec017d75e1c64d3aa0cbdbd9ad09af (patch) | |
tree | d9c2caefb228bf29d498f1073a84c1a3cb0b9eea | |
parent | bd8a509a2262dc6048fae318168f5485bda0f4b5 (diff) | |
download | markup-validator-3e732ba03eec017d75e1c64d3aa0cbdbd9ad09af.zip markup-validator-3e732ba03eec017d75e1c64d3aa0cbdbd9ad09af.tar.gz markup-validator-3e732ba03eec017d75e1c64d3aa0cbdbd9ad09af.tar.bz2 |
No doctype override warning if the override == the actual doctype
fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=48
-rwxr-xr-x | httpd/cgi-bin/check | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index 859a7ea..078da92 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -9,7 +9,7 @@ # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # -# $Id: check,v 1.408 2005-03-24 08:37:26 ot Exp $ +# $Id: check,v 1.409 2005-03-24 09:01:37 ot Exp $ # # Disable buffering on STDOUT! @@ -220,7 +220,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.408 $; + $VERSION = q$Revision: 1.409 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -1334,7 +1334,7 @@ sub override_doctype { $File->{Content} = [split /\n/, $HTML]; if ($seen) { - unless ($File->{Opt}->{FB}->{DOCTYPE}) { + unless (($File->{Opt}->{FB}->{DOCTYPE}) or ($File->{Opt}->{DOCTYPE} eq $CFG->{Types}->{$File->{DOCTYPE}}->{Display} )) { &add_warning('W13', { W13_org => $org_dtd, W13_new => $File->{Opt}->{DOCTYPE}, |