markup-validator commit: Don't warn about xmlns in non-XML HTML5 documents.

changeset:   3248:f3554377c576
user:        Ville Skyttä <ville.skytta@iki.fi>
date:        Wed Aug 24 00:41:17 2011 +0300
files:       httpd/cgi-bin/check
description:
Don't warn about xmlns in non-XML HTML5 documents.

http://dev.w3.org/html5/spec/elements.html#global-attributes


diff -r 276a03d0bbdf -r f3554377c576 httpd/cgi-bin/check
--- a/httpd/cgi-bin/check	Tue Aug 23 19:30:39 2011 +0300
+++ b/httpd/cgi-bin/check	Wed Aug 24 00:41:17 2011 +0300
@@ -726,7 +726,7 @@
             );
         }
     }
-    else {
+    elsif ($File->{DOCTYPE} ne 'HTML5') {
         &add_warning(
             'W11',
             {   W11_ns      => $File->{Namespace},

Received on Tuesday, 23 August 2011 21:50:45 UTC