[TASK] EXT:form - Add HTML4 / HTML5 attributes for SELECT to wizard 80/43780/6
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Sun, 4 Oct 2015 14:40:19 +0000 (16:40 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 6 Oct 2015 20:55:15 +0000 (22:55 +0200)
Add new attributes to the wizard element SELECT.

Resolves: #70339
Releases: master
Change-Id: I2101051eeba48272989c974ccb010e4083074c2d
Reviewed-on: http://review.typo3.org/43780
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/SelectJsonElement.php
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Select.js

index 1de8377..93aabd3 100644 (file)
@@ -48,16 +48,28 @@ class SelectJsonElement extends \TYPO3\CMS\Form\Domain\Model\Json\AbstractJsonEl
         * @var array
         */
        protected $allowedAttributes = array(
+               'accesskey',
                'class',
-               'disabled',
+               'contenteditable',
+               'contextmenu',
+               'dir',
+               'draggable',
+               'dropzone',
+               'hidden',
                'id',
                'lang',
-               'multiple',
-               'name',
-               'size',
+               'spellcheck',
                'style',
                'tabindex',
-               'title'
+               'title',
+               'translate',
+               /* element specific attributes */
+               'autofocus',
+               'disabled',
+               'multiple',
+               'name',
+               'required',
+               'size'
        );
 
        protected $childElementsAllowed = FALSE;
index 2241a88..1036fb3 100644 (file)
@@ -74,16 +74,28 @@ TYPO3.Form.Wizard.Elements.Basic.Select = Ext.extend(TYPO3.Form.Wizard.Elements,
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       "class": '',
-                                       disabled: '',
-                                       id: '',
-                                       lang: '',
-                                       multiple: '',
-                                       name: '',
-                                       size: '',
-                                       style: '',
-                                       tabindex: '',
-                                       title: ''
+                                       'accesskey': '',
+                                       'class': '',
+                                       'contenteditable': '',
+                                       'contextmenu': '',
+                                       'dir': '',
+                                       'draggable': '',
+                                       'dropzone': '',
+                                       'hidden': '',
+                                       'id': '',
+                                       'lang': '',
+                                       'spellcheck': '',
+                                       'style': '',
+                                       'tabindex': '',
+                                       'title': '',
+                                       'translate': '',
+
+                                       'autofocus': '',
+                                       'disabled': '',
+                                       'multiple': '',
+                                       'name': '',
+                                       'required': '',
+                                       'size': ''
                                },
                                filters: {},
                                label: {