- From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 30 Jan 2009 21:16:29 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv8362
Modified Files:
check
Log Message:
Catch up with changed HTML 5 DOCTYPE legacy string.
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.639
retrieving revision 1.640
diff -u -d -r1.639 -r1.640
--- check 28 Jan 2009 15:30:17 -0000 1.639
+++ check 30 Jan 2009 21:16:26 -0000 1.640
@@ -1791,7 +1791,8 @@
$File->{DOCTYPE} = 'HTML5'
if (lc($File->{Root} || '') eq 'html' &&
- (!defined($File->{DOCTYPE}) || $File->{DOCTYPE} eq 'XSLT-compat'));
+ (!defined($File->{DOCTYPE}) ||
+ $File->{DOCTYPE} eq 'about:legacy-compat'));
# No Override if Fallback was requested, or if override is the same as detected
my $known = $CFG->{Types}->{$File->{DOCTYPE}};
@@ -2111,7 +2112,7 @@
my $declaration = shift;
my $doctype_type;
my $doctype_secondpart;
- if ($declaration =~ /<!DOCTYPE\s+html(?:\s+PUBLIC\s+(['"])XSLT-compat\1)?\s*>/si) {
+ if ($declaration =~ /<!DOCTYPE\s+html(?:\s+SYSTEM\s+(['"])about:legacy-compat\1)?\s*>/si) {
$File->{Root} = "html";
$File->{DOCTYPE} = "HTML5";
}
Received on Friday, 30 January 2009 21:16:38 UTC