W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2011

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

From: Mercurial notifier <nobody@w3.org>
Date: Tue, 23 Aug 2011 21:50:43 +0000
Message-Id: <E1Qvyrr-0003Hf-Ca@mcbain.w3.org>
To: markup-validator updates <www-validator-cvs@w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:46 UTC