summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorot <ot@localhost>2008-08-20 20:34:10 +0000
committerot <ot@localhost>2008-08-20 20:34:10 +0000
commitb402f9852a245a87a666f395ba7aec3861133895 (patch)
tree08e081d2747b6932f08d9a414dc19f4056158463
parent37ec3ec5a4e1b264df5703afa8c2abf506d33131 (diff)
downloadmarkup-validator-b402f9852a245a87a666f395ba7aec3861133895.zip
markup-validator-b402f9852a245a87a666f395ba7aec3861133895.tar.gz
markup-validator-b402f9852a245a87a666f395ba7aec3861133895.tar.bz2
muting "unknown parse mode" warning for html5 sent as text/html
-rw-r--r--htdocs/config/types.conf4
-rwxr-xr-xhttpd/cgi-bin/check6
2 files changed, 6 insertions, 4 deletions
diff --git a/htdocs/config/types.conf b/htdocs/config/types.conf
index decbffb..4d3abea 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.41 2008-08-15 19:29:27 ot Exp $
+# $Id: types.conf,v 1.42 2008-08-20 20:34:10 ot 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,6 +271,8 @@
Name = html
Display = HTML5
Info URL = http://www.w3.org/TR/html5/
+ PubID = HTML5
+ Parse Mode = HTML5
<Types>
Allowed = text/html application/xhtml+xml
#
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index bac1771..edebc95 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.599 2008-08-19 13:49:23 ot Exp $
+# $Id: check,v 1.600 2008-08-20 20:34:10 ot Exp $
#
# Disable buffering on STDOUT!
@@ -191,7 +191,7 @@ Directory not readable (permission denied): @_r
#
# Strings
- $VERSION = q$Revision: 1.599 $;
+ $VERSION = q$Revision: 1.600 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
#
@@ -2386,7 +2386,7 @@ sub set_parse_mode {
return;
}
- $parseModeFromDoctype = 'TBD' unless $parseModeFromDoctype eq 'SGML' or $parseModeFromDoctype eq 'XML' or $parseModeFromNamespace eq 'XML';
+ $parseModeFromDoctype = 'TBD' unless $parseModeFromDoctype eq 'SGML' or $parseModeFromDoctype eq 'HTML5' or $parseModeFromDoctype eq 'XML' or $parseModeFromNamespace eq 'XML';
if (($parseModeFromDoctype eq 'TBD') and ($parseModeFromXMLDecl eq 'TBD') and ($parseModeFromMimeType eq 'TBD') and ($parseModeFromNamespace eq 'TBD')) {
# if all factors are useless to give us a parse mode