HTMLFormFieldCloner: Set 'formnovalidate' on add/remove field buttons
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 2 Dec 2016 17:28:30 +0000 (18:28 +0100)
committerLegoktm <legoktm@member.fsf.org>
Sun, 18 Dec 2016 12:58:26 +0000 (12:58 +0000)
commita83188d0ab6768849e2879692de764a16fa652b2
tree63e673f2824683a66f94cb65b687779961f90447
parentab9beeccdb9ce173e6423b87de1f1a91437182ad
HTMLFormFieldCloner: Set 'formnovalidate' on add/remove field buttons

Otherwise, after we allow HTML5 form validation attributes, these
buttons wouldn't work for non-JS users (unless the whole form was
otherwise valid).

Change-Id: Ia9c16849774c186b991280ea60fc5608ddd4cf42
includes/htmlform/fields/HTMLButtonField.php
includes/htmlform/fields/HTMLFormFieldCloner.php