r94384 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94383‎ | r94384 | r94385 >
Date:21:04, 12 August 2011
Author:hartman
Status:ok
Tags:
Comment:
Update the Html5 void elements and boolean attributes, in accordance with the latest draft.
Modified paths:
  • /trunk/phase3/includes/Html.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Html.php
@@ -48,7 +48,7 @@
4949 * @since 1.16
5050 */
5151 class Html {
52 - # List of void elements from HTML5, section 9.1.2 as of 2009-08-10
 52+ # List of void elements from HTML5, section 8.1.2 as of 2011-08-12
5353 private static $voidElements = array(
5454 'area',
5555 'base',
@@ -64,16 +64,19 @@
6565 'meta',
6666 'param',
6767 'source',
 68+ 'track',
 69+ 'wbr',
6870 );
6971
7072 # Boolean attributes, which may have the value omitted entirely. Manually
71 - # collected from the HTML5 spec as of 2010-06-07.
 73+ # collected from the HTML5 spec as of 2011-08-12.
7274 private static $boolAttribs = array(
7375 'async',
7476 'autofocus',
7577 'autoplay',
7678 'checked',
7779 'controls',
 80+ 'default',
7881 'defer',
7982 'disabled',
8083 'formnovalidate',
@@ -82,6 +85,7 @@
8386 'itemscope',
8487 'loop',
8588 'multiple',
 89+ 'muted',
8690 'novalidate',
8791 'open',
8892 'pubdate',
@@ -91,6 +95,8 @@
9296 'scoped',
9397 'seamless',
9498 'selected',
 99+ 'truespeed',
 100+ 'typemustmatch',
95101 );
96102
97103 /**

Status & tagging log