W3C home > Mailing lists > Public > www-validator-cvs@w3.org > January 2009

validator/httpd/cgi-bin check,1.639,1.640

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 30 Jan 2009 21:16:29 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LT0iz-0002BC-4B@lionel-hutz.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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 30 January 2009 21:16:40 GMT