[TASK] EXT:form - Add HTML4 / HTML5 attributes for FORM to wizard 78/43778/4
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Sun, 4 Oct 2015 14:19:06 +0000 (16:19 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 6 Oct 2015 22:04:02 +0000 (00:04 +0200)
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>
typo3/sysext/form/Classes/Domain/Model/Json/FormJsonElement.php
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Form.js

index 3029d60..6da57ca 100644 (file)
@@ -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'
        );
 
        /**
index 7658355..fa3a4d3 100644 (file)
@@ -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,