From ca726493f99354de8294368557bdc30650e1732d Mon Sep 17 00:00:00 2001 From: Ralf Zimmermann <ralf.zimmermann@tritum.de> Date: Sun, 4 Oct 2015 16:19:06 +0200 Subject: [PATCH] [TASK] EXT:form - Add HTML4 / HTML5 attributes for FORM to wizard Add new attributes to the wizard element FORM. Resolves: #70337 Releases: master Change-Id: I41a62cf5d68c9c69ec104bc9127f09a215e8c98c Reviewed-on: http://review.typo3.org/43778 Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de> Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> --- .../Domain/Model/Json/FormJsonElement.php | 24 +++++++++---- .../JavaScript/Wizard/Elements/Basic/Form.js | 34 +++++++++++++------ 2 files changed, 41 insertions(+), 17 deletions(-) diff --git a/typo3/sysext/form/Classes/Domain/Model/Json/FormJsonElement.php b/typo3/sysext/form/Classes/Domain/Model/Json/FormJsonElement.php index 3029d60b7884..6da57caba3ed 100644 --- a/typo3/sysext/form/Classes/Domain/Model/Json/FormJsonElement.php +++ b/typo3/sysext/form/Classes/Domain/Model/Json/FormJsonElement.php @@ -44,17 +44,29 @@ class FormJsonElement extends \TYPO3\CMS\Form\Domain\Model\Json\ContainerJsonEle * @var array */ protected $allowedAttributes = array( - 'accept', - 'accept-charset', - 'action', + 'accesskey', 'class', + 'contenteditable', + 'contextmenu', 'dir', - 'enctype', + 'draggable', + 'dropzone', + 'hidden', 'id', 'lang', - 'method', + 'spellcheck', 'style', - 'title' + 'tabindex', + 'title', + 'translate', + /* element specific attributes */ + 'accept', + 'accept-charset', + 'action', + 'autocomplete', + 'enctype', + 'method', + 'novalidate' ); /** diff --git a/typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Form.js b/typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Form.js index 76583558c0b3..fa3a4d3a47fe 100644 --- a/typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Form.js +++ b/typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Form.js @@ -71,17 +71,29 @@ TYPO3.Form.Wizard.Elements.Basic.Form = Ext.extend(TYPO3.Form.Wizard.Elements, { Ext.apply(this, { configuration: { attributes: { - accept: '', - acceptcharset: '', - action: '', - "class": '', - dir: '', - enctype: 'application/x-www-form-urlencoded', - id: '', - lang: '', - method: 'post', - style: '', - title: '' + 'accesskey': '', + 'class': '', + 'contenteditable': '', + 'contextmenu': '', + 'dir': '', + 'draggable': '', + 'dropzone': '', + 'hidden': '', + 'id': '', + 'lang': '', + 'spellcheck': '', + 'style': '', + 'tabindex': '', + 'title': '', + 'translate': '', + + 'accept': '', + 'accept-charset': '', + 'action': '', + 'autocomplete': '', + 'enctype': 'application/x-www-form-urlencoded', + 'method': 'post', + 'novalidate': '' }, prefix: 'tx_form', confirmation: true, -- GitLab