summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--htdocs/config/types.conf5
-rwxr-xr-xhttpd/cgi-bin/check7
2 files changed, 7 insertions, 5 deletions
diff --git a/htdocs/config/types.conf b/htdocs/config/types.conf
index d8feea9..17a5bc8 100644
--- a/htdocs/config/types.conf
+++ b/htdocs/config/types.conf
@@ -1,7 +1,7 @@
#
# Main Document Type Database for the W3C Markup Validation Service.
#
-# $Id: types.conf,v 1.44 2009-01-03 21:04:26 ville Exp $
+# $Id: types.conf,v 1.45 2009-01-07 19:30:04 ville Exp $
#
# Maintains all information for each of the document types we support.
# See 'perldoc Config::General' for the syntax, and be aware that the
@@ -271,8 +271,7 @@
Name = html
Display = HTML5
Info URL = http://www.w3.org/TR/html5/
- # PubID must be present, and is intentionally empty here!
- PubID =
+ PubID = HTML5 # Fake, special case in the code
Parse Mode = HTML5
<Types>
Allowed = text/html application/xhtml+xml
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 6a68ee5..fc554a1 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.633 2009-01-06 21:33:10 ville Exp $
+# $Id: check,v 1.634 2009-01-07 19:30:04 ville Exp $
#
# Disable buffering on STDOUT!
@@ -199,7 +199,7 @@ Directory not readable (permission denied): @_r
#
# Strings
- $VERSION = q$Revision: 1.633 $;
+ $VERSION = q$Revision: 1.634 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
#
@@ -1751,6 +1751,9 @@ sub override_doctype {
my $sysid = $dt->{SysID};
my $name = $dt->{Name};
+ # The HTML5 PubID is a fake, reset it out of the way.
+ $pubid = undef if ($pubid eq 'HTML5');
+
# We don't have public/system ids for all types.
local $dtd = "<!DOCTYPE $name";
if ($pubid) {