Allow setting the ID of the main table in HTMLForm
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 29 Apr 2013 06:13:05 +0000 (08:13 +0200)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 28 May 2013 21:05:35 +0000 (21:05 +0000)
commitfcf98dc451af81ca0099e58729f2d16d85710daf
treedcc097a33325d9abde926ba4563f1ecd18a16d55
parentee85aac6ffb80b290f6d7794bf1d9d76f40e5de5
Allow setting the ID of the main table in HTMLForm

- Added new method HTMLForm::setTableId() to allow to set the ID
  of the main table (or the outermost <div> element depending on
  the format).
- Changed the second parameter of HTMLForm::displaySection()
  to take the full ID so that the one set with setTableId()
  will not get prefixed with "mw-htmlform-"

Note: If someone has a better idea for the name of that method
(since it also applies to <div> elements), please tell me it :)

Change-Id: Id01bd0fa44512b0320f3c3ff79627e8a9bccd5bb
includes/HTMLForm.php