- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 26 Aug 2008 14:59:15 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv24165/httpd/cgi-bin
Modified Files:
check
Log Message:
muting the "contradictory parse mode" warning for HTML5 docs served as app/x+x
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.601
retrieving revision 1.602
diff -u -d -r1.601 -r1.602
--- check 22 Aug 2008 11:36:29 -0000 1.601
+++ check 26 Aug 2008 14:59:13 -0000 1.602
@@ -2401,10 +2401,11 @@
return;
}
elsif ($parseModeFromMimeType ne 'TBD') {
- # if The mime type gives clear indication of the parse mode
- if (($parseModeFromDoctype ne 'TBD') and ($parseModeFromMimeType ne $parseModeFromDoctype)) {
- # if document-type recommended mode and content-type recommended mode clash
- # shoot a warning
+ # if The mime type gives clear indication of whether the document is XML or not
+ if (($parseModeFromDoctype ne 'TBD') and ($parseModeFromDoctype ne 'HTML5') and ($parseModeFromMimeType ne $parseModeFromDoctype)) {
+ # if document-type recommended mode and content-type recommended mode clash, shoot a warning
+ # unknown doctypes will not trigger this
+ # neither will html5 documents, which can be XML or not
&add_warning('W07', {
W07_mime => $File->{ContentType},
W07_ct => $parseModeFromMimeType,
Received on Tuesday, 26 August 2008 14:59:49 UTC