Update the Html5 void elements and boolean attributes, in accordance with the latest...
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Fri, 12 Aug 2011 21:04:25 +0000 (21:04 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Fri, 12 Aug 2011 21:04:25 +0000 (21:04 +0000)
includes/Html.php

index bf72dff..bdc4c15 100644 (file)
@@ -48,7 +48,7 @@
  * @since 1.16
  */
 class Html {
-       # List of void elements from HTML5, section 9.1.2 as of 2009-08-10
+       # List of void elements from HTML5, section 8.1.2 as of 2011-08-12
        private static $voidElements = array(
                'area',
                'base',
@@ -64,16 +64,19 @@ class Html {
                'meta',
                'param',
                'source',
+               'track',
+               'wbr',
        );
 
        # Boolean attributes, which may have the value omitted entirely.  Manually
-       # collected from the HTML5 spec as of 2010-06-07.
+       # collected from the HTML5 spec as of 2011-08-12.
        private static $boolAttribs = array(
                'async',
                'autofocus',
                'autoplay',
                'checked',
                'controls',
+               'default',
                'defer',
                'disabled',
                'formnovalidate',
@@ -82,6 +85,7 @@ class Html {
                'itemscope',
                'loop',
                'multiple',
+               'muted',
                'novalidate',
                'open',
                'pubdate',
@@ -91,6 +95,8 @@ class Html {
                'scoped',
                'seamless',
                'selected',
+               'truespeed',
+               'typemustmatch',
        );
 
        /**