OOUIHTMLForm: Support setWrapperLegend()
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 11 Jul 2015 16:46:05 +0000 (18:46 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 13 Jul 2015 17:20:08 +0000 (19:20 +0200)
commitb524a4333f9c1b42bf6ac0f6caa3055bd8acf84a
tree5b1f303e51be9ac8ac18db8bc3e93aa340ee771f
parent974608d9fc1583289bd8273b45991b0a8dcf0ed4
OOUIHTMLForm: Support setWrapperLegend()

Changed FormSpecialPage not to call setWrapperLegend() for OOUI
forms to preserve current default behavior.

Bonus:
* Correct documentation of setWrapperLegend() to state that it
  HTML-escapes legend text.
* Remove hard-coded class="visualClear" in getFormAttributes().
* Allow setWrapperLegend( true ) to display the wrapper without
  legend text.
* Rejigger things so that we can put the legend and "header HTML"
  into correct order.

Bug: T103026
Change-Id: I847c5e18ae5469aa3a68cc9fa37b2a6614476ca2
includes/htmlform/HTMLForm.php
includes/htmlform/OOUIHTMLForm.php
includes/htmlform/VFormHTMLForm.php
includes/specialpage/FormSpecialPage.php
resources/src/mediawiki/mediawiki.htmlform.ooui.css