HTMLForm: Do not render hidden elements as elements
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Wed, 4 Nov 2015 18:38:01 +0000 (19:38 +0100)
committerFlorianschmidtwelzow <florian.schmidt.stargatewissen@gmail.com>
Mon, 9 Nov 2015 16:16:40 +0000 (16:16 +0000)
commitc762b6899bbf64ecf7cb56ffdeab504a59e45ea4
tree29fbe2c585fb7fd5d8a47bc8160c5096de7f8219
parent7faa829218b1b91296865f36b9ff710e3870b7eb
HTMLForm: Do not render hidden elements as elements

Hidden elements doesn't need an extra element in the DOM, but OOUIHTMLForm
would render one, wrapped into a fieldLayout div.

Fix this by adding the possibility to bypass the output, and only construct
a HTMLFormField element and run the output method.

Bug: T117768
Change-Id: I8c9d2ff862f1b14d72a9bb9e1a51e8745af6d1f4
includes/htmlform/HTMLApiField.php
includes/htmlform/HTMLForm.php
includes/htmlform/HTMLFormField.php
includes/htmlform/HTMLHiddenField.php