[TASK] EXT:form - Add HTML4 / HTML5 attributes for PASSWORD to wizard 88/43788/4
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Sun, 4 Oct 2015 15:21:01 +0000 (17:21 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 7 Oct 2015 09:47:43 +0000 (11:47 +0200)
Add new attributes to the wizard element PASSWORD.

Resolves: #70343
Releases: master
Change-Id: I8a85ade636f13989354b767aa8e2141ab463f5c7
Reviewed-on: http://review.typo3.org/43788
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/PasswordJsonElement.php
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Elements/Basic/Password.js

index 103d20d..93d977e 100644 (file)
@@ -50,20 +50,32 @@ class PasswordJsonElement extends \TYPO3\CMS\Form\Domain\Model\Json\AbstractJson
         */
        protected $allowedAttributes = array(
                'accesskey',
-               'alt',
                'class',
+               'contenteditable',
+               'contextmenu',
                'dir',
-               'disabled',
+               'draggable',
+               'dropzone',
+               'hidden',
                'id',
                'lang',
+               'spellcheck',
+               'style',
+               'tabindex',
+               'title',
+               'translate',
+               /* element specific attributes */
+               'autocomplete',
+               'autofocus',
+               'disabled',
                'maxlength',
+               'minlength',
                'name',
+               'pattern',
                'placeholder',
                'readonly',
+               'required',
                'size',
-               'style',
-               'tabindex',
-               'title',
                'type',
                'value'
        );
index 56fbd5e..60d2ac8 100644 (file)
@@ -70,23 +70,35 @@ TYPO3.Form.Wizard.Elements.Basic.Password = Ext.extend(TYPO3.Form.Wizard.Element
                Ext.apply(this, {
                        configuration: {
                                attributes: {
-                                       accesskey: '',
-                                       alt: '',
-                                       "class": '',
-                                       dir: '',
-                                       disabled: '',
-                                       id: '',
-                                       lang: '',
-                                       maxlength: '',
-                                       name: '',
-                                       placeholder: '',
-                                       readonly: '',
-                                       size: '',
-                                       style: '',
-                                       tabindex: '',
-                                       title: '',
-                                       type: 'password',
-                                       value: ''
+                                       'accesskey': '',
+                                       'class': '',
+                                       'contenteditable': '',
+                                       'contextmenu': '',
+                                       'dir': '',
+                                       'draggable': '',
+                                       'dropzone': '',
+                                       'hidden': '',
+                                       'id': '',
+                                       'lang': '',
+                                       'spellcheck': '',
+                                       'style': '',
+                                       'tabindex': '',
+                                       'title': '',
+                                       'translate': '',
+
+                                       'autocomplete': '',
+                                       'autofocus': '',
+                                       'disabled': '',
+                                       'maxlength': '',
+                                       'minlength': '',
+                                       'name': '',
+                                       'pattern': '',
+                                       'placeholder': '',
+                                       'readonly': '',
+                                       'required': '',
+                                       'size': '',
+                                       'type': 'password',
+                                       'value': ''
                                },
                                filters: {},
                                label: {