[TASK] EXT:form - Add HTML4 / HTML5 attributes for HIDDEN to wizard 89/43789/4
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Sun, 4 Oct 2015 15:24:53 +0000 (17:24 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 7 Oct 2015 09:42:46 +0000 (11:42 +0200)
Add new attributes to the wizard element HIDDEN.

Resolves: #70344
Releases: master
Change-Id: I7a54c9d37d33f76d0de49e92e9be1551940899ce
Reviewed-on: http://review.typo3.org/43789
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
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/HiddenJsonElement.php
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Hidden.js

index 4a3090f..1d7cd57 100644 (file)
@@ -49,11 +49,23 @@ class HiddenJsonElement extends \TYPO3\CMS\Form\Domain\Model\Json\AbstractJsonEl
         * @var array
         */
        protected $allowedAttributes = array(
+               'accesskey',
                'class',
+               'contenteditable',
+               'contextmenu',
+               'dir',
+               'draggable',
+               'dropzone',
+               'hidden',
                'id',
                'lang',
-               'name',
+               'spellcheck',
                'style',
+               'tabindex',
+               'title',
+               'translate',
+               /* element specific attributes */
+               'name',
                'type',
                'value'
        );
index 928e459..aa9df22 100644 (file)
@@ -47,13 +47,25 @@ TYPO3.Form.Wizard.Elements.Basic.Hidden = Ext.extend(TYPO3.Form.Wizard.Elements,
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       "class": '',
-                                       id: '',
-                                       lang: '',
-                                       name: '',
-                                       style: '',
-                                       type: 'hidden',
-                                       value: ''
+                                       'accesskey': '',
+                                       'class': '',
+                                       'contenteditable': '',
+                                       'contextmenu': '',
+                                       'dir': '',
+                                       'draggable': '',
+                                       'dropzone': '',
+                                       'hidden': '',
+                                       'id': '',
+                                       'lang': '',
+                                       'spellcheck': '',
+                                       'style': '',
+                                       'tabindex': '',
+                                       'title': '',
+                                       'translate': '',
+
+                                       'name': '',
+                                       'type': 'hidden',
+                                       'value': ''
                                },
                                filters: {},
                                validation: {}