HTMLForm: Use OOUI\Element::configFromHtmlAttributes instead of rolling our own
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 2 Mar 2016 19:09:53 +0000 (20:09 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 9 Mar 2016 00:08:05 +0000 (00:08 +0000)
commitee5af951679d9bf39a68fdf9eefd096aacb682f3
treee9afbefebaf4c6cb84a3cf9b2fb2e373e87fb6f4
parent65e4a41e96da6937d8e7155d81b635ba0e124d85
HTMLForm: Use OOUI\Element::configFromHtmlAttributes instead of rolling our own

Depends on I0e5c956b9358b510c8473b1cfe6465ea1b5c07ef in OOjs UI.

This mostly reverts dd04b310527c3ce69911789254939e9a2b627ada and parts
of e85bd04bcd26f9a05406cedf6ee0dcac0b54c435.

In addition to cleanup, it fixes bugs in HTMLFormFieldWithButton
(which did not add some attributes in OOUI mode) and HTMLMultiSelectField
(which did not do the mapping, losing some attributes in OOUI mode).

Change-Id: I0d1a5288e9edb73a0c3a8431feca9fcc67b72b6a
12 files changed:
includes/htmlform/HTMLAutoCompleteSelectField.php
includes/htmlform/HTMLButtonField.php
includes/htmlform/HTMLCheckField.php
includes/htmlform/HTMLCheckMatrix.php
includes/htmlform/HTMLComboboxField.php
includes/htmlform/HTMLFormField.php
includes/htmlform/HTMLFormFieldWithButton.php
includes/htmlform/HTMLMultiSelectField.php
includes/htmlform/HTMLRadioField.php
includes/htmlform/HTMLSelectField.php
includes/htmlform/HTMLTextAreaField.php
includes/htmlform/HTMLTextField.php