HTML5 new types for input element
authorAntoine Musso <hashar@free.fr>
Thu, 30 Aug 2012 09:57:22 +0000 (11:57 +0200)
committerAntoine Musso <hashar@free.fr>
Sat, 15 Sep 2012 04:26:55 +0000 (21:26 -0700)
commita45e20ff11476e5a6daf7ec177cdd0ee5f850b97
treec8091331a382d0b794f8720c674aad0c21ece49e
parent64e3e1e7db788c8f3bfcde1a980d2abc759e357d
HTML5 new types for input element

HTML5 introduced new types for the input element. For some reasons we
never added them to Html::openElement which would thus strip them even
in HTML5 mode.

The issue is:
 $wgHtml5 = true;
 Html::element( 'input', array( 'type' => 'color' );
 # -> "<input />"

With this patch, we returns: <input type="color" />

Change-Id: I7de373635d0eb47f788d1d664c3a913c8801efd6
RELEASE-NOTES-1.20
includes/Html.php
tests/phpunit/includes/HtmlTest.php