From 69bde7f3ae5dbe9c00368e3d1b33384289e1c27e Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Fri, 12 Aug 2011 21:04:25 +0000 Subject: [PATCH] Update the Html5 void elements and boolean attributes, in accordance with the latest draft. --- includes/Html.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/includes/Html.php b/includes/Html.php index bf72dffae0..bdc4c15e70 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -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', ); /** -- 2.20.1